summaryrefslogtreecommitdiff
path: root/mteval/ter.h
blob: 0758c6b6f637c50aaf87ccd2db1d60e6f3ea9fbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef TER_H_
#define TER_H_

#include "scorer.h"

class TERScorerImpl;

class TERScorer : public SentenceScorer {
 public:
  TERScorer(const std::vector<std::vector<WordID> >& references);
  ~TERScorer();
  ScoreP ScoreCandidate(const std::vector<WordID>& hyp) const;
  ScoreP ScoreCCandidate(const std::vector<WordID>& hyp) const;
  static ScoreP ScoreFromString(const std::string& data);
 private:
  std::vector<TERScorerImpl*> impl_;
};

#endif