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:
Diffstat (limited to 'src/translator/output_collector.h')
-rw-r--r--src/translator/output_collector.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/translator/output_collector.h b/src/translator/output_collector.h
index ffcbd2d5..0e6bfc9f 100644
--- a/src/translator/output_collector.h
+++ b/src/translator/output_collector.h
@@ -74,14 +74,15 @@ protected:
class StringCollector {
public:
- StringCollector();
+ StringCollector(bool quiet = false);
StringCollector(const StringCollector&) = delete;
void add(long sourceId, const std::string& best1, const std::string& bestn);
std::vector<std::string> collect(bool nbest);
protected:
- long maxId_;
+ long maxId_; // the largest index of the translated source sentences
+ bool quiet_; // if true do not log best translations
std::mutex mutex_;
typedef std::map<long, std::pair<std::string, std::string>> Outputs;