mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-29 06:52:34 +03:00
print input line number in logs
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@663 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
34c4312b6a
commit
8e986774e1
@ -109,11 +109,12 @@ int main(int argc, char* argv[])
|
||||
|
||||
// read each sentence & decode
|
||||
InputType *source=0;
|
||||
size_t lineCount = 0;
|
||||
while(readInput(inputOutput,staticData.GetInputType(),source))
|
||||
{
|
||||
// note: source is only valid within this while loop!
|
||||
|
||||
TRACE_ERR("\nTRANSLATING: " << *source <<endl);
|
||||
TRACE_ERR("\nTRANSLATING(" << ++lineCount << "): " << *source <<endl);
|
||||
|
||||
staticData.InitializeBeforeSentenceProcessing(*source);
|
||||
Manager manager(*source, staticData);
|
||||
@ -135,7 +136,7 @@ int main(int argc, char* argv[])
|
||||
}
|
||||
|
||||
if (staticData.IsDetailedTranslationReportingEnabled()) {
|
||||
TranslationAnalysis::PrintTranslationAnalysis(std::cout, manager.GetBestHypothesis());
|
||||
TranslationAnalysis::PrintTranslationAnalysis(std::cerr, manager.GetBestHypothesis());
|
||||
}
|
||||
staticData.CleanUpAfterSentenceProcessing();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user