mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 19:27:11 +03:00
Reduced time to die!!!
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1139 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
d601f10dcb
commit
be039bf84a
@ -126,6 +126,7 @@ int main(int argc, char* argv[])
|
||||
staticData.GetReportSegmentation(),
|
||||
staticData.GetReportAllFactors()
|
||||
);
|
||||
IFVERBOSE(2) { PrintUserTime("Best Hypothesis Generation Time:"); }
|
||||
|
||||
// n-best
|
||||
size_t nBestSize = staticData.GetNBestSize();
|
||||
@ -136,7 +137,9 @@ int main(int argc, char* argv[])
|
||||
manager.CalcNBest(nBestSize, nBestList,staticData.GetDistinctNBest());
|
||||
ioStream->OutputNBestList(nBestList, source->GetTranslationId());
|
||||
//RemoveAllInColl(nBestList);
|
||||
}
|
||||
|
||||
IFVERBOSE(2) { PrintUserTime("N-Best Hypotheses Generation Time:"); }
|
||||
}
|
||||
|
||||
if (staticData.IsDetailedTranslationReportingEnabled()) {
|
||||
TranslationAnalysis::PrintTranslationAnalysis(std::cerr, manager.GetBestHypothesis());
|
||||
@ -152,7 +155,10 @@ int main(int argc, char* argv[])
|
||||
delete ioStream;
|
||||
|
||||
PrintUserTime("End.");
|
||||
return EXIT_SUCCESS;
|
||||
//This avoids that detructors are called (it can take a long time)
|
||||
exit(EXIT_SUCCESS);
|
||||
|
||||
// return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
IOStream *GetIODevice(StaticData &staticData)
|
||||
|
Loading…
Reference in New Issue
Block a user