diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-03-14 17:14:11 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-03-14 17:14:11 +0400 |
commit | fba01c7cdfb10f8283cff44d78b40abb7ad61cc0 (patch) | |
tree | d7ef43ce9d5ce747c2afce705ede3dadc63ed9a3 /mert/BleuScorer.h | |
parent | 175b7aaf495963a8dd08525094073db06686adf8 (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.h | 9 |
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); |