blob: fe4ba36cc3928d3bffd751d68e31160e07410101 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#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;
static Score* ScoreFromString(const std::string& data);
private:
std::vector<TERScorerImpl*> impl_;
};
#endif
|