diff options
author | Colin Cherry <colin.a.cherry@gmail.com> | 2012-05-30 20:39:53 +0400 |
---|---|---|
committer | Colin Cherry <colin.a.cherry@gmail.com> | 2012-05-30 20:39:53 +0400 |
commit | 3c44d04baf6f4cdb938ac4e4e318b0591d3f553a (patch) | |
tree | 7a14d19983b81e0a981c1bdeda4062a456fc83b5 /mert/BleuScorer.h | |
parent | d4a2414bf039db67b21689f3cc8ef8447fac5ff9 (diff) | |
parent | beb2256dbaf420ed525cc8354617ead0db315060 (diff) |
Merge branch 'master' into miramerge
Conflicts:
Jamroot
mert/FeatureStats.cpp
moses-cmd/src/IOWrapper.h
scripts/training/mert-moses.pl
scripts/training/train-model.perl.missing_bin_dir
Diffstat (limited to 'mert/BleuScorer.h')
-rw-r--r-- | mert/BleuScorer.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mert/BleuScorer.h b/mert/BleuScorer.h index 1f568f744..8f1384f5a 100644 --- a/mert/BleuScorer.h +++ b/mert/BleuScorer.h @@ -70,4 +70,14 @@ private: */ float sentenceLevelBleuPlusOne(const std::vector<float>& stats); +/** Computes sentence-level BLEU score given a background corpus. + * This function is used in batch MIRA. + */ +float sentenceLevelBackgroundBleu(const std::vector<float>& sent, const std::vector<float>& bg); + +/** + * Computes plain old BLEU from a vector of stats + */ +float unsmoothedBleu(const std::vector<float>& stats); + #endif // MERT_BLEU_SCORER_H_ |