diff options
Diffstat (limited to 'mteval/ter.h')
-rw-r--r-- | mteval/ter.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mteval/ter.h b/mteval/ter.h new file mode 100644 index 00000000..43314791 --- /dev/null +++ b/mteval/ter.h @@ -0,0 +1,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 |