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

#include "scorer.h"

class BLEUTERCombinationScorer : public SentenceScorer {
 public:
  BLEUTERCombinationScorer(const std::vector<std::vector<WordID> >& refs);
  ~BLEUTERCombinationScorer();
  Score* ScoreCandidate(const std::vector<WordID>& hyp) const;
  Score* ScoreCCandidate(const std::vector<WordID>& hyp) const;
  static Score* ScoreFromString(const std::string& in);
 private:
  SentenceScorer* bleu_;
  SentenceScorer* ter_;
};

#endif