diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-02-01 16:44:37 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-02-01 16:44:37 +0400 |
commit | 905f959d83b573094ce9d675683efeeb9b47958d (patch) | |
tree | 9f7c348b00ef58555c8f06e6b70cb4fafcd998e6 /mert/CderScorer.h | |
parent | b2987337d87115a6858113b6a6ad2cc6d2e2db40 (diff) |
Move funcions defined in a header into .cpp file.
Diffstat (limited to 'mert/CderScorer.h')
-rw-r--r-- | mert/CderScorer.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/mert/CderScorer.h b/mert/CderScorer.h index 73a1b12e5..bcc4946dc 100644 --- a/mert/CderScorer.h +++ b/mert/CderScorer.h @@ -3,7 +3,6 @@ #include <algorithm> #include <iostream> -#include <iterator> #include <string> #include <vector> #include "Types.h" @@ -18,16 +17,9 @@ public: ~CderScorer(); virtual void setReferenceFiles(const vector<string>& referenceFiles); - virtual void prepareStats(size_t sid, const string& text, ScoreStats& entry) - { - vector<int> stats; - prepareStatsVector(sid, text, stats); - - stringstream sout; - copy(stats.begin(),stats.end(),ostream_iterator<float>(sout," ")); - string stats_str = sout.str(); - entry.set(stats_str); - } + + virtual void prepareStats(size_t sid, const string& text, ScoreStats& entry); + virtual void prepareStatsVector(size_t sid, const string& text, vector<int>& stats); virtual size_t NumberOfScores() const { @@ -41,10 +33,6 @@ private: vector<vector<sent_t> > m_ref_sentences; vector<int> computeCD(const sent_t& cand, const sent_t& ref) const; - int distance(int word1, int word2) const - { - return word1 == word2 ? 0 : 1; - } // no copying allowed CderScorer(const CderScorer&); |