Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/marian.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/output_collector.cpp5
-rwxr-xr-xsrc/common/printer.h1
2 files changed, 5 insertions, 1 deletions
diff --git a/src/common/output_collector.cpp b/src/common/output_collector.cpp
index d22b427f..885b2131 100644
--- a/src/common/output_collector.cpp
+++ b/src/common/output_collector.cpp
@@ -1,5 +1,6 @@
#include <cassert>
#include "output_collector.h"
+#include "logging.h"
using namespace std;
@@ -16,6 +17,8 @@ void OutputCollector::Write(long sourceId, const std::string& output)
boost::mutex::scoped_lock lock(mutex_);
if (sourceId == nextId_) {
*outStrm_ << output << std::flush;
+ LOG(progress) << "Best translation " << sourceId << " : " << output;
+
++nextId_;
Outputs::const_iterator iter, iterNext;
@@ -27,6 +30,8 @@ void OutputCollector::Write(long sourceId, const std::string& output)
// 1st element in the map is the next
const string &currOutput = iter->second;
*outStrm_ << currOutput << std::flush;
+ LOG(progress) << "Best translation " << currId << " : " << currOutput;
+
++nextId_;
// delete current record, move iter on 1
diff --git a/src/common/printer.h b/src/common/printer.h
index ea68512a..88ecc3ce 100755
--- a/src/common/printer.h
+++ b/src/common/printer.h
@@ -23,7 +23,6 @@ void Printer(const God &god, const History& history, OStream& out) {
if (god.Get<bool>("return-alignment")) {
best += GetAlignmentString(GetAlignment(bestTranslation.second));
}
- LOG(progress) << "Best translation: " << best;
if (god.Get<bool>("n-best")) {
std::vector<std::string> scorerNames = god.GetScorerNames();