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 923efa0a4c
commit b2987337d8
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 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:

View File

@ -28,10 +28,6 @@ public:
virtual void setReferenceFiles(const vector<string>& referenceFiles);
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 {
// cerr << "PerScorer: 3" << endl;
return 3;
@ -39,6 +35,10 @@ public:
virtual float calculateScore(const vector<int>& comps) const;
void whoami() const {
cerr << "I AM PerScorer" << std::endl;
}
private:
// no copying allowed
PerScorer(const PerScorer&);

View File

@ -25,10 +25,6 @@ public:
virtual void setReferenceFiles(const vector<string>& referenceFiles);
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 {
// cerr << "TerScorer: " << (LENGTH + 1) << endl;
return kLENGTH + 1;
@ -36,6 +32,10 @@ public:
virtual float calculateScore(const vector<int>& comps) const;
void whoami() const {
cerr << "I AM TerScorer" << std::endl;
}
private:
const int kLENGTH;