diff options
author | Rico Sennrich <rico.sennrich@gmx.ch> | 2014-09-16 19:36:45 +0400 |
---|---|---|
committer | Rico Sennrich <rico.sennrich@gmx.ch> | 2014-09-22 13:49:20 +0400 |
commit | 6810b225ccd673c7684ab9b62e0daa0a7af054f3 (patch) | |
tree | 570de70e3e57af2bc13782c09e222599c7b26e5d /mert/CderScorer.h | |
parent | f40bb2c53c2dcd832bde9e987c921171e2d1e581 (diff) |
calculateScore with float (for smoothing support)
Diffstat (limited to 'mert/CderScorer.h')
-rw-r--r-- | mert/CderScorer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mert/CderScorer.h b/mert/CderScorer.h index bd43ec0d8..68fa81857 100644 --- a/mert/CderScorer.h +++ b/mert/CderScorer.h @@ -23,13 +23,13 @@ public: virtual void prepareStats(std::size_t sid, const std::string& text, ScoreStats& entry); - virtual void prepareStatsVector(std::size_t sid, const std::string& text, std::vector<int>& stats); + virtual void prepareStatsVector(std::size_t sid, const std::string& text, std::vector<ScoreStatsType>& stats); virtual std::size_t NumberOfScores() const { return 2; } - virtual float calculateScore(const std::vector<int>& comps) const; + virtual float calculateScore(const std::vector<ScoreStatsType>& comps) const; private: bool m_allowed_long_jumps; @@ -38,7 +38,7 @@ private: std::vector<std::vector<sent_t> > m_ref_sentences; void computeCD(const sent_t& cand, const sent_t& ref, - std::vector<int>& stats) const; + std::vector<ScoreStatsType>& stats) const; // no copying allowed CderScorer(const CderScorer&); |