Add consensus decoding to mosesmt. Really need to get the mainlines merged!

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@3248 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
bhaddow 2010-05-11 14:55:59 +00:00
parent c15fc6f104
commit 0b6346a310

View File

@ -168,10 +168,17 @@ class TranslationTask : public Task {
IFVERBOSE(2) { PrintUserTime("finished Lattice MBR decoding"); }
}
}
else
else if (staticData.UseConsensusDecoding()) {
const TrellisPath &conBestHypo = doConsensusDecoding(manager,nBestList);
OutputBestHypo(conBestHypo, m_lineNumber,
staticData.GetReportSegmentation(),
staticData.GetReportAllFactors(),out);
IFVERBOSE(2) { PrintUserTime("finished Consensus decoding"); }
}
else
{
//MBR decoding
const Moses::TrellisPath &mbrBestHypo = doMBR(nBestList);
const Moses::TrellisPath &mbrBestHypo = doMBR(nBestList);
OutputBestHypo(mbrBestHypo, m_lineNumber,
staticData.GetReportSegmentation(),
staticData.GetReportAllFactors(),out);