mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 19:27:11 +03:00
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:
parent
499bf77ebc
commit
d17f9dfd8e
@ -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:"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user