diff options
author | Rico Sennrich <rico.sennrich@gmx.ch> | 2014-09-17 17:14:11 +0400 |
---|---|---|
committer | Rico Sennrich <rico.sennrich@gmx.ch> | 2014-09-22 13:49:20 +0400 |
commit | 3d00e5dc8ceb19d619e2ed2d0aa3f1b2a160944a (patch) | |
tree | 9d6a6fc32490d47aa0291c52285f53bf8d5abfac /mert/InterpolatedScorer.h | |
parent | 6810b225ccd673c7684ab9b62e0daa0a7af054f3 (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.h | 4 |
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 */ |