summaryrefslogtreecommitdiff
path: root/mteval/comb_scorer.h
diff options
context:
space:
mode:
authoraustinma <austinma@cs.cmu.edu>2016-01-14 21:22:56 -0500
committeraustinma <austinma@cs.cmu.edu>2016-01-14 21:22:56 -0500
commitc643ef361eea7ce43b4fc7a6e2461a01b3d0c3c6 (patch)
treea90a3dbd3e8b6887f8cbf4e5a27994de6eee5d35 /mteval/comb_scorer.h
parent899032c9728c7a1c9c97f624ba0cc49b0814277b (diff)
Added character-level BLEU metric
Diffstat (limited to 'mteval/comb_scorer.h')
-rw-r--r--mteval/comb_scorer.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/mteval/comb_scorer.h b/mteval/comb_scorer.h
index d17d089d..1e2f0c25 100644
--- a/mteval/comb_scorer.h
+++ b/mteval/comb_scorer.h
@@ -14,4 +14,15 @@ class BLEUTERCombinationScorer : public SentenceScorer {
ScorerP bleu_,ter_;
};
+class BLEUCBLEUCombinationScorer : public SentenceScorer {
+ public:
+ BLEUCBLEUCombinationScorer(const std::vector<std::vector<WordID> >& refs);
+ ~BLEUCBLEUCombinationScorer();
+ ScoreP ScoreCandidate(const std::vector<WordID>& hyp) const;
+ ScoreP ScoreCCandidate(const std::vector<WordID>& hyp) const;
+ static ScoreP ScoreFromString(const std::string& in);
+ private:
+ ScorerP bleu_, cbleu_;
+};
+
#endif