summaryrefslogtreecommitdiff
path: root/mteval/comb_scorer.h
blob: 346be5762483c21844e9027d889804e11d90311c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef _COMB_SCORER_
#define _COMB_SCORER_

#include "scorer.h"

class BLEUTERCombinationScorer : public SentenceScorer {
 public:
  BLEUTERCombinationScorer(const std::vector<std::vector<WordID> >& refs);
  ~BLEUTERCombinationScorer();
  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_,ter_;
};

#endif