blob: d9927f78d4a546b903b2eda9b7de580f7fe7b43f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef NS_CER_H_
#define NS_CER_H_
#include "ns.h"
class CERMetric : public EvaluationMetric {
friend class EvaluationMetric;
protected:
CERMetric() : EvaluationMetric("CER") {}
public:
virtual bool IsErrorMetric() const;
virtual unsigned SufficientStatisticsVectorSize() 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
|