summaryrefslogtreecommitdiff
path: root/mteval/ter.h
blob: 4331479121dd13a305fc4ee10f37e571f03562a6 (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