mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-11-10 10:59:21 +03:00
Remove virtual keyword from whoami() function.
The funtion is neither inherited from Scorer nor StatisticsBasedScorer.
This commit is contained in:
parent
4051f723f7
commit
4e3dd11f53
@ -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:
|
||||||
|
@ -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&);
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user