blob: cffd1bd778189b09ad33559741e565fd45b6f32f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#ifndef NS_TER_H_
#define NS_TER_H_
#include "ns.h"
class TERMetric : public EvaluationMetric {
friend class EvaluationMetric;
protected:
TERMetric() : EvaluationMetric("TER") {}
public:
virtual bool IsErrorMetric() const;
virtual unsigned SufficientStatisticsVectorSize() const;
virtual std::string DetailedScore(const SufficientStats& stats) const;
virtual void ComputeSufficientStatistics(const std::vector<WordID>& hyp,
const std::vector<std::vector<WordID> >& refs,
SufficientStats* out) const;
virtual float ComputeScore(const SufficientStats& stats) const;
};
#endif
|