took out FactorType

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@451 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
hieuhoang1972 2006-08-01 20:12:58 +00:00
parent 15536efa03
commit eacaf8404d

View File

@ -70,6 +70,7 @@ InputType*IOCommandLine::GetInput(InputType* in)
// help fn
void OutputSurface(std::ostream &out, const Phrase &phrase, const std::vector<FactorType> &outputFactorOrder, bool reportAllFactors)
{
assert(outputFactorOrder.size() > 0);
if (reportAllFactors == true)
{
out << phrase;
@ -79,11 +80,15 @@ void OutputSurface(std::ostream &out, const Phrase &phrase, const std::vector<Fa
size_t size = phrase.GetSize();
for (size_t pos = 0 ; pos < size ; pos++)
{
for (size_t i = 0 ; i < outputFactorOrder.size() ; i++)
const Factor *factor = phrase.GetFactor(pos, outputFactorOrder[0]);
out << *factor;
for (size_t i = 1 ; i < outputFactorOrder.size() ; i++)
{
const Factor *factor = phrase.GetFactor(pos, outputFactorOrder[i]);
out << *factor << " ";
out << "|" << *factor;
}
out << " ";
}
}
}