mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +03:00
Remove virtual keyword from whoami() function.
The funtion is neither inherited from Scorer nor StatisticsBasedScorer.
This commit is contained in:
parent
923efa0a4c
commit
b2987337d8
@ -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:
|
||||
|
@ -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&);
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user