diff options
Diffstat (limited to 'phrase-extract')
-rw-r--r-- | phrase-extract/consolidate-main.cpp | 4 | ||||
-rw-r--r-- | phrase-extract/extract-main.cpp | 4 | ||||
-rw-r--r-- | phrase-extract/score-main.cpp | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/phrase-extract/consolidate-main.cpp b/phrase-extract/consolidate-main.cpp index 5964bf686..732185eb3 100644 --- a/phrase-extract/consolidate-main.cpp +++ b/phrase-extract/consolidate-main.cpp @@ -259,6 +259,7 @@ void processFiles( const std::string& fileNameDirect, // loop through all extracted phrase translations int i=0; while(true) { + // Print progress dots to stderr. i++; if (i%100000 == 0) std::cerr << "." << std::flush; @@ -436,6 +437,9 @@ void processFiles( const std::string& fileNameDirect, fileDirect.Close(); fileIndirect.Close(); fileConsolidated.Close(); + + // We've been printing progress dots to stderr. End the line. + std::cerr << std::endl; } diff --git a/phrase-extract/extract-main.cpp b/phrase-extract/extract-main.cpp index 70d4cad35..328a33a25 100644 --- a/phrase-extract/extract-main.cpp +++ b/phrase-extract/extract-main.cpp @@ -283,6 +283,7 @@ int main(int argc, char* argv[]) string englishString, foreignString, alignmentString, weightString; while(getline(*eFileP, englishString)) { + // Print progress dots to stderr. i++; if (i%10000 == 0) cerr << "." << flush; @@ -337,6 +338,9 @@ int main(int argc, char* argv[]) extractFileContextInv.Close(); } } + + // We've been printing progress dots to stderr. End the line. + cerr << endl; } namespace MosesTraining diff --git a/phrase-extract/score-main.cpp b/phrase-extract/score-main.cpp index cf28f90b9..444087b2d 100644 --- a/phrase-extract/score-main.cpp +++ b/phrase-extract/score-main.cpp @@ -359,6 +359,7 @@ int main(int argc, char* argv[]) while ( getline(extractFile, line) ) { + // Print progress dots to stderr. if ( ++i % 100000 == 0 ) { std::cerr << "." << std::flush; } @@ -450,6 +451,9 @@ int main(int argc, char* argv[]) } + // We've been printing progress dots to stderr. End the line. + std::cerr << std::endl; + processPhrasePairs( phrasePairsWithSameSource, *phraseTableFile, featureManager, maybeLogProb ); for ( std::vector< ExtractionPhrasePair* >::const_iterator iter=phrasePairsWithSameSource.begin(); iter!=phrasePairsWithSameSource.end(); ++iter) { |