diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-04-06 20:02:32 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-04-06 20:02:32 +0400 |
commit | d034eeb703bd56776d0e83675ab4d105cda0e340 (patch) | |
tree | 902424a5e89a1d7efc405d80e1c101c11ecb22c6 /mert/BleuScorer.h | |
parent | bcc1958d9454085d558966b4be2aa2f6345b33e9 (diff) |
Add test cases for BLEU and sentence-level BLEU+1.
- Move a definition of sentenceLevelBleuPlusOne() from pro.cpp
to BleuScorer.cpp.
- Add check for the length of an input vector.
Diffstat (limited to 'mert/BleuScorer.h')
-rw-r--r-- | mert/BleuScorer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mert/BleuScorer.h b/mert/BleuScorer.h index 5fce47ad4..b6503ba9b 100644 --- a/mert/BleuScorer.h +++ b/mert/BleuScorer.h @@ -67,4 +67,9 @@ private: BleuScorer& operator=(const BleuScorer&); }; +/** Computes sentence-level BLEU+1 score. + * This function is used in PRO. + */ +float sentenceLevelBleuPlusOne(const vector<float>& stats); + #endif // MERT_BLEU_SCORER_H_ |