summaryrefslogtreecommitdiff
path: root/vest/ter.h
blob: 21007874846bb81007759cd42841372ef16e4c46 (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();
  Score* ScoreCandidate(const std::vector<WordID>& hyp) const;
  Score* ScoreCCandidate(const std::vector<WordID>& hyp) const;
  static Score* ScoreFromString(const std::string& data);
 private:
  std::vector<TERScorerImpl*> impl_;
};

#endif