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-12-07 00:12:24 +0400
committerTetsuo Kiso <tetsuo-s@is.naist.jp>2012-12-07 00:12:24 +0400
commit8fdec9bf3059e388b267da06b4d5a0ca67615df7 (patch)
tree1a4a8f18824c786dcb1662ee8be3643f606ea4e8 /mert/BleuScorer.h
parent6c04c4ad9c1fa9b184a3ad95c8e7b75bcb5c92c3 (diff)
Use boost::unordered_map instead of std::map.
For storing the word vocabulary used in computation of BLEU scores. This change will reduce the running time of extractor about 2-3 seconds (9% reduction).
Diffstat (limited to 'mert/BleuScorer.h')
-rw-r--r--mert/BleuScorer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mert/BleuScorer.h b/mert/BleuScorer.h
index 2e5a0f54c..6b8b8d046 100644
--- a/mert/BleuScorer.h
+++ b/mert/BleuScorer.h
@@ -51,7 +51,7 @@ public:
/**
* Count the ngrams of each type, up to the given length in the input line.
*/
- std::size_t CountNgrams(const std::string& line, NgramCounts& counts, unsigned int n);
+ std::size_t CountNgrams(const std::string& line, NgramCounts& counts, unsigned int n, bool is_testing=false);
void DumpCounts(std::ostream* os, const NgramCounts& counts) const;