diff options
author | MosesAdmin <moses-support-owner@mit.edu> | 2015-11-02 03:00:37 +0300 |
---|---|---|
committer | MosesAdmin <moses-support-owner@mit.edu> | 2015-11-02 03:00:37 +0300 |
commit | f38976aba07e0dbca74f9b824b28add486889b2a (patch) | |
tree | 54d2a68a9da692ba4e8fc91d339523e9874acd66 /moses/Incremental.cpp | |
parent | 8424fb6e2ad8e9d15471c7e610bce85082610a41 (diff) |
daily automatic beautifier
Diffstat (limited to 'moses/Incremental.cpp')
-rw-r--r-- | moses/Incremental.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/moses/Incremental.cpp b/moses/Incremental.cpp index c004cda5d..15ef1ad71 100644 --- a/moses/Incremental.cpp +++ b/moses/Incremental.cpp @@ -320,15 +320,15 @@ void Manager::OutputNBest(OutputCollector *collector) const OutputNBestList(collector, *completed_nbest_, m_source.GetTranslationId()); } -void +void Manager:: -OutputNBestList(OutputCollector *collector, - std::vector<search::Applied> const& nbest, - long translationId) const +OutputNBestList(OutputCollector *collector, + std::vector<search::Applied> const& nbest, + long translationId) const { const StaticData &staticData = StaticData::Instance(); - const std::vector<Moses::FactorType> &outputFactorOrder - = staticData.GetOutputFactorOrder(); + const std::vector<Moses::FactorType> &outputFactorOrder + = staticData.GetOutputFactorOrder(); std::ostringstream out; // wtf? copied from the original OutputNBestList @@ -337,13 +337,13 @@ OutputNBestList(OutputCollector *collector, } Phrase outputPhrase; ScoreComponentCollection features; - for (std::vector<search::Applied>::const_iterator i = nbest.begin(); + for (std::vector<search::Applied>::const_iterator i = nbest.begin(); i != nbest.end(); ++i) { Incremental::PhraseAndFeatures(*i, outputPhrase, features); // <s> and </s> UTIL_THROW_IF2(outputPhrase.GetSize() < 2, "Output phrase should have contained at least 2 words " - << "(beginning and end-of-sentence)"); + << "(beginning and end-of-sentence)"); outputPhrase.RemoveWord(0); outputPhrase.RemoveWord(outputPhrase.GetSize() - 1); @@ -359,7 +359,7 @@ OutputNBestList(OutputCollector *collector, collector->Write(translationId, out.str()); } -void +void Manager:: OutputDetailedTranslationReport(OutputCollector *collector) const { @@ -525,7 +525,7 @@ void Manager::OutputBestHypo(OutputCollector *collector, search::Applied applied VERBOSE(1,"BEST TRANSLATION: " << outPhrase << "[total=" << applied.GetScore() << "]" << std::endl); } -void +void Manager:: OutputBestNone(OutputCollector *collector, long translationId) const { |