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

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTetsuo Kiso <tetsuo-s@is.naist.jp>2012-02-25 21:01:03 +0400
committerTetsuo Kiso <tetsuo-s@is.naist.jp>2012-02-25 21:01:03 +0400
commit669b9d9c7aab3553df561b4b6e1f1328669d5ef2 (patch)
treebd7041b181a366160aa2f48c22655582954e613b /mert/BleuScorer.h
parent8e0a61d0d731bc1e2a4f427d48a5a26ff8f7c923 (diff)
Minor change the logging utility for n-gram counts.
Use std::ostream instead of directly using std::cerr.
Diffstat (limited to 'mert/BleuScorer.h')
-rw-r--r--mert/BleuScorer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mert/BleuScorer.h b/mert/BleuScorer.h
index 6c1660fab..7ae19fa5f 100644
--- a/mert/BleuScorer.h
+++ b/mert/BleuScorer.h
@@ -1,7 +1,7 @@
#ifndef MERT_BLEU_SCORER_H_
#define MERT_BLEU_SCORER_H_
-#include <iostream>
+#include <ostream>
#include <string>
#include <vector>
@@ -45,7 +45,7 @@ private:
*/
size_t countNgrams(const string& line, NgramCounts& counts, unsigned int n);
- void dump_counts(const NgramCounts& counts) const;
+ void dump_counts(std::ostream* os, const NgramCounts& counts) const;
// For calculating effective reference length.
void CalcAverage(size_t sentence_id,