Remove virtual keyword from whoami() function.

The funtion is neither inherited from Scorer nor
StatisticsBasedScorer.
This commit is contained in:
Tetsuo Kiso 2012-02-01 21:36:25 +09:00
parent 4051f723f7
commit 4e3dd11f53
3 changed files with 11 additions and 10 deletions

View File

@ -23,8 +23,9 @@ public:
virtual void setReferenceFiles(const vector<string>& referenceFiles); virtual void setReferenceFiles(const vector<string>& referenceFiles);
virtual void prepareStats(size_t sid, const string& text, ScoreStats& entry); virtual void prepareStats(size_t sid, const string& text, ScoreStats& entry);
virtual void whoami() const {
cerr << "I AM MergeScorer" << std::endl; void whoami() const {
cerr << "I AM MergeScorer" << endl;
} }
protected: protected:

View File

@ -28,10 +28,6 @@ public:
virtual void setReferenceFiles(const vector<string>& referenceFiles); virtual void setReferenceFiles(const vector<string>& referenceFiles);
virtual void prepareStats(size_t sid, const string& text, ScoreStats& entry); virtual void prepareStats(size_t sid, const string& text, ScoreStats& entry);
virtual void whoami() const {
cerr << "I AM PerScorer" << std::endl;
}
virtual size_t NumberOfScores() const { virtual size_t NumberOfScores() const {
// cerr << "PerScorer: 3" << endl; // cerr << "PerScorer: 3" << endl;
return 3; return 3;
@ -39,6 +35,10 @@ public:
virtual float calculateScore(const vector<int>& comps) const; virtual float calculateScore(const vector<int>& comps) const;
void whoami() const {
cerr << "I AM PerScorer" << std::endl;
}
private: private:
// no copying allowed // no copying allowed
PerScorer(const PerScorer&); PerScorer(const PerScorer&);

View File

@ -25,10 +25,6 @@ public:
virtual void setReferenceFiles(const vector<string>& referenceFiles); virtual void setReferenceFiles(const vector<string>& referenceFiles);
virtual void prepareStats(size_t sid, const string& text, ScoreStats& entry); virtual void prepareStats(size_t sid, const string& text, ScoreStats& entry);
virtual void whoami() const {
cerr << "I AM TerScorer" << std::endl;
}
virtual size_t NumberOfScores() const { virtual size_t NumberOfScores() const {
// cerr << "TerScorer: " << (LENGTH + 1) << endl; // cerr << "TerScorer: " << (LENGTH + 1) << endl;
return kLENGTH + 1; return kLENGTH + 1;
@ -36,6 +32,10 @@ public:
virtual float calculateScore(const vector<int>& comps) const; virtual float calculateScore(const vector<int>& comps) const;
void whoami() const {
cerr << "I AM TerScorer" << std::endl;
}
private: private:
const int kLENGTH; const int kLENGTH;