#ifndef _NS_TER_H_ #define _NS_TER_H_ #include "ns.h" class TERMetric : public EvaluationMetric { friend class EvaluationMetric; protected: TERMetric() : EvaluationMetric("TER") {} public: virtual unsigned SufficientStatisticsVectorSize() const; virtual void ComputeSufficientStatistics(const std::vector& hyp, const std::vector >& refs, SufficientStats* out) const; virtual float ComputeScore(const SufficientStats& stats) const; }; #endif