mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-28 14:32:38 +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,7 +70,8 @@ void OutputSurface(std::ostream &out, const Phrase &phrase)
|
||||
for (size_t pos = 0 ; pos < size ; pos++)
|
||||
{
|
||||
const Factor *factor = phrase.GetFactor(pos, Surface);
|
||||
out << *factor << " ";
|
||||
if (factor != NULL)
|
||||
out << *factor << " ";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user