diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2011-11-12 03:58:23 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2011-11-12 03:58:23 +0400 |
commit | 68315d6407f55ff98b3b3bf89dc725d2ccad8019 (patch) | |
tree | 6d4e95512f522e857d39e8f796dcf4dbfee003d8 /mert/BleuScorer.h | |
parent | 4f6d022fe7fa6c8e3279de2221a24f11afd8f8ba (diff) |
Fix class, function, and implementation comments format.
Functions comments should be placed in their declarations.
Diffstat (limited to 'mert/BleuScorer.h')
-rw-r--r-- | mert/BleuScorer.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mert/BleuScorer.h b/mert/BleuScorer.h index 4c0e62e6b..07868c68a 100644 --- a/mert/BleuScorer.h +++ b/mert/BleuScorer.h @@ -22,8 +22,8 @@ enum BleuReferenceLengthStrategy { BLEU_AVERAGE, BLEU_SHORTEST, BLEU_CLOSEST }; /** - * Bleu scoring - **/ + * Bleu scoring + */ class BleuScorer: public StatisticsBasedScorer { public: @@ -91,6 +91,9 @@ private: typedef ScopedVector<counts_t> refcounts_t; + /** + * Count the ngrams of each type, up to the given length in the input line. + */ size_t countNgrams(const string& line, counts_t& counts, unsigned int n); void dump_counts(counts_t& counts) { |