mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-01 08:21:47 +03:00
don't output if not surface factor
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@248 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
70682b48a1
commit
a857773715
@ -70,6 +70,7 @@ void OutputSurface(std::ostream &out, const Phrase &phrase)
|
|||||||
for (size_t pos = 0 ; pos < size ; pos++)
|
for (size_t pos = 0 ; pos < size ; pos++)
|
||||||
{
|
{
|
||||||
const Factor *factor = phrase.GetFactor(pos, Surface);
|
const Factor *factor = phrase.GetFactor(pos, Surface);
|
||||||
|
if (factor != NULL)
|
||||||
out << *factor << " ";
|
out << *factor << " ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user