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-02-25 20:54:51 +0400
committerTetsuo Kiso <tetsuo-s@is.naist.jp>2012-02-25 20:54:51 +0400
commit8e0a61d0d731bc1e2a4f427d48a5a26ff8f7c923 (patch)
tree15cf1475861ba8ca019bec65546a587c654544e4 /mert/BleuScorer.h
parentc4fa8a3865da1db0a49fc539a679ee3335ff21fa (diff)
Clean up calculation effective reference length.
Diffstat (limited to 'mert/BleuScorer.h')
-rw-r--r--mert/BleuScorer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/mert/BleuScorer.h b/mert/BleuScorer.h
index 4166d30e7..6c1660fab 100644
--- a/mert/BleuScorer.h
+++ b/mert/BleuScorer.h
@@ -47,6 +47,14 @@ private:
void dump_counts(const NgramCounts& counts) const;
+ // For calculating effective reference length.
+ void CalcAverage(size_t sentence_id,
+ vector<ScoreStatsType>& stats) const;
+ void CalcClosest(size_t sentence_id, size_t length,
+ vector<ScoreStatsType>& stats) const;
+ void CalcShortest(size_t sentence_id,
+ vector<ScoreStatsType>& stats) const;
+
const int kLENGTH;
ReferenceLengthType m_ref_length_type;