diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2011-11-12 05:58:14 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2011-11-12 05:58:14 +0400 |
commit | 54b3b846c7591c8e4b8443740e5f611297959ed7 (patch) | |
tree | 5a5ef4e3a7c8750ab474fafa60453904d576db47 /mert/TerScorer.h | |
parent | 00b8c6d76895fb90ef4c8679f9337dafe9633019 (diff) |
Add const member functions in Scorer classes.
Diffstat (limited to 'mert/TerScorer.h')
-rw-r--r-- | mert/TerScorer.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mert/TerScorer.h b/mert/TerScorer.h index fb134a8de..411d942bf 100644 --- a/mert/TerScorer.h +++ b/mert/TerScorer.h @@ -35,12 +35,13 @@ public: virtual void setReferenceFiles(const vector<string>& referenceFiles); virtual void prepareStats(size_t sid, const string& text, ScoreStats& entry); - virtual void whoami() { + virtual void whoami() const { cerr << "I AM TerScorer" << std::endl; } - size_t NumberOfScores() { + + virtual size_t NumberOfScores() const { // cerr << "TerScorer: " << (LENGTH + 1) << endl; - return (kLENGTH + 1); + return kLENGTH + 1; } virtual float calculateScore(const vector<int>& comps) const; |