summaryrefslogtreecommitdiff
path: root/vest/scorer.cc
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-21 20:12:44 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-21 20:12:44 +0000
commitf80891a7c4a2834efc476ce4d29cc6c438e567f0 (patch)
tree44256925313682feb6beb7bb701b2d4624de5f48 /vest/scorer.cc
parent37043945bebecad62af028f76549245ba020884e (diff)
Score::Clone() via CRTP
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@360 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'vest/scorer.cc')
-rw-r--r--vest/scorer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/vest/scorer.cc b/vest/scorer.cc
index 05269a3b..5671de38 100644
--- a/vest/scorer.cc
+++ b/vest/scorer.cc
@@ -87,7 +87,7 @@ float SentenceScorer::ComputeRefLength(const Sentence &hyp) const {
const std::string* SentenceScorer::GetSource() const { return NULL; }
-class SERScore : public Score {
+class SERScore : public ScoreBase<SERScore> {
friend class SERScorer;
public:
SERScore() : correct(0), total(0) {}
@@ -151,7 +151,7 @@ class SERScorer : public SentenceScorer {
vector<vector<WordID> > refs_;
};
-class BLEUScore : public Score {
+class BLEUScore : public ScoreBase<BLEUScore> {
friend class BLEUScorerBase;
public:
BLEUScore(int n) : correct_ngram_hit_counts(float(0),n), hyp_ngram_counts(float(0),n) {