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-03-14 17:14:11 +0400
committerTetsuo Kiso <tetsuo-s@is.naist.jp>2012-03-14 17:14:11 +0400
commitfba01c7cdfb10f8283cff44d78b40abb7ad61cc0 (patch)
treed7ef43ce9d5ce747c2afce705ede3dadc63ed9a3 /mert/BleuScorer.h
parent175b7aaf495963a8dd08525094073db06686adf8 (diff)
Create a header file for NgramCounts class.
The reason is that we want to add the unit test.
Diffstat (limited to 'mert/BleuScorer.h')
-rw-r--r--mert/BleuScorer.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/mert/BleuScorer.h b/mert/BleuScorer.h
index f3513e135..c35d4ad1d 100644
--- a/mert/BleuScorer.h
+++ b/mert/BleuScorer.h
@@ -14,6 +14,8 @@ using namespace std;
const int kBleuNgramOrder = 4;
+class NgramCounts;
+
/**
* Bleu scoring
*/
@@ -36,13 +38,6 @@ private:
};
/**
- * A NgramCounts is a key-value store.
- * Clients don't have to worry about the actual implementation
- * since this type is used in internal only.
- */
- class NgramCounts;
-
- /**
* Count the ngrams of each type, up to the given length in the input line.
*/
size_t countNgrams(const string& line, NgramCounts& counts, unsigned int n);