From c643ef361eea7ce43b4fc7a6e2461a01b3d0c3c6 Mon Sep 17 00:00:00 2001 From: austinma Date: Thu, 14 Jan 2016 21:22:56 -0500 Subject: Added character-level BLEU metric --- mteval/comb_scorer.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'mteval/comb_scorer.h') 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 >& refs); + ~BLEUCBLEUCombinationScorer(); + ScoreP ScoreCandidate(const std::vector& hyp) const; + ScoreP ScoreCCandidate(const std::vector& hyp) const; + static ScoreP ScoreFromString(const std::string& in); + private: + ScorerP bleu_, cbleu_; +}; + #endif -- cgit v1.2.3