Only outputting surface form for LatticeMBR argmax

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@2893 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
abarun 2010-02-12 15:56:37 +00:00
parent 118a11497a
commit 0b04e54234

View File

@ -240,12 +240,16 @@ void IOWrapper::OutputBestHypo(const std::vector<const Factor*>& mbrBestHypo, l
void IOWrapper::OutputBestHypo(const std::vector<Word>& mbrBestHypo, long /*translationId*/, bool reportSegmentation, bool reportAllFactors)
{
for (size_t i = 0 ; i < mbrBestHypo.size() ; i++)
{
cout << mbrBestHypo[i];
const Factor *factor = mbrBestHypo[i].GetFactor(m_outputFactorOrder[0]);
if (i>0) cout << " ";
cout << *factor;
}
cout << endl;
}
}
void OutputInput(std::vector<const Phrase*>& map, const Hypothesis* hypo)
{