Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (19 sloc) 722 Bytes
#ifndef _NS_CER_H_
#define _NS_CER_H_
#include "ns.h"
class CERMetric : public EvaluationMetric {
friend class EvaluationMetric;
unsigned EditDistance(const std::string& hyp,
const std::string& ref) const;
CERMetric() : EvaluationMetric("CER") {}
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;
Jump to Line
Something went wrong with that request. Please try again.