diff options
author | phkoehn <phkoehn@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-01-18 22:00:07 +0300 |
---|---|---|
committer | phkoehn <phkoehn@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-01-18 22:00:07 +0300 |
commit | 0faf1a83c0e51059007e8adb2cf5eaa3636ca6c4 (patch) | |
tree | 04d8c257abbe59217a6eccb79ec8ba5c2eb13422 /moses-cmd | |
parent | 1044b16522c856c497b5dc4fd4b6064cd00ecec5 (diff) |
bug fix for distinct n-best list generation, resolved memory blowup issue
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1542 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'moses-cmd')
-rw-r--r-- | moses-cmd/src/Main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/moses-cmd/src/Main.cpp b/moses-cmd/src/Main.cpp index 4d29780b5..d9f14ce32 100644 --- a/moses-cmd/src/Main.cpp +++ b/moses-cmd/src/Main.cpp @@ -138,7 +138,6 @@ int main(int argc, char* argv[]) manager.ProcessSentence(); // pick best translation (maximum a posteriori decoding) - cerr << "using MBR ? " << ( staticData.UseMBR() ? "yes" : "no" ) << endl; if (! staticData.UseMBR()) { ioStream->OutputBestHypo(manager.GetBestHypothesis(), source->GetTranslationId(), staticData.GetReportSegmentation(), @@ -172,7 +171,7 @@ int main(int argc, char* argv[]) { TrellisPathList nBestList; manager.CalcNBest(nBestSize, nBestList,true); - cerr << "size of n-best: " << nBestList.GetSize() << " (" << nBestSize << ")" << endl; + VERBOSE(2,"size of n-best: " << nBestList.GetSize() << " (" << nBestSize << ")" << endl); IFVERBOSE(2) { PrintUserTime("calculated n-best list for MBR decoding"); } std::vector<const Factor*> mbrBestHypo = doMBR(nBestList); ioStream->OutputBestHypo(mbrBestHypo, source->GetTranslationId(), |