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:
authorRico Sennrich <rico.sennrich@gmx.ch>2014-09-17 17:14:11 +0400
committerRico Sennrich <rico.sennrich@gmx.ch>2014-09-22 13:49:20 +0400
commit3d00e5dc8ceb19d619e2ed2d0aa3f1b2a160944a (patch)
tree9d6a6fc32490d47aa0291c52285f53bf8d5abfac /mert/InterpolatedScorer.h
parent6810b225ccd673c7684ab9b62e0daa0a7af054f3 (diff)
basic support for more metrics with kbmira
metrics need getReferenceLength (for background smoothing) to work with kbmira
Diffstat (limited to 'mert/InterpolatedScorer.h')
-rw-r--r--mert/InterpolatedScorer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/mert/InterpolatedScorer.h b/mert/InterpolatedScorer.h
index d1078e9e1..159abf6d4 100644
--- a/mert/InterpolatedScorer.h
+++ b/mert/InterpolatedScorer.h
@@ -39,6 +39,10 @@ public:
virtual void setScoreData(ScoreData* data);
+ virtual float calculateScore(const std::vector<ScoreStatsType>& totals) const;
+
+ virtual float getReferenceLength(const std::vector<ScoreStatsType>& totals) const;
+
/**
* Set the factors, which should be used for this metric
*/