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:
hieuhoang1972 2006-07-21 17:57:37 +00:00
parent 70682b48a1
commit a857773715

View File

@ -70,6 +70,7 @@ void OutputSurface(std::ostream &out, const Phrase &phrase)
for (size_t pos = 0 ; pos < size ; pos++)
{
const Factor *factor = phrase.GetFactor(pos, Surface);
if (factor != NULL)
out << *factor << " ";
}
}