enabling output of nbest with MBR

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@2637 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
nicolabertoldi 2009-12-14 14:24:14 +00:00
parent 499bf77ebc
commit d17f9dfd8e

View File

@ -187,6 +187,12 @@ int main(int argc, char* argv[])
staticData.GetReportSegmentation(),
staticData.GetReportAllFactors());
IFVERBOSE(2) { PrintUserTime("finished MBR decoding"); }
if (!staticData.GetNBestFilePath().empty()){
//print the all nbest used for MBR (and not the amount passed through the parameter
VERBOSE(2,"WRITING " << nBestSize << " TRANSLATION ALTERNATIVES TO " << staticData.GetNBestFilePath() << endl);
ioWrapper->OutputNBestList(nBestList, source->GetTranslationId());
IFVERBOSE(2) { PrintUserTime("N-Best Hypotheses Generation Time:"); }
}
}
}