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:
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;