MosesTuning::TerScorer Class Reference

#include <TerScorer.h>

Inheritance diagram for MosesTuning::TerScorer:

Inheritance graph
Collaboration diagram for MosesTuning::TerScorer:

Collaboration graph

List of all members.

Public Member Functions

 TerScorer (const std::string &config="")
 ~TerScorer ()
virtual void setReferenceFiles (const std::vector< std::string > &referenceFiles)
virtual void prepareStats (std::size_t sid, const std::string &text, ScoreStats &entry)
virtual std::size_t NumberOfScores () const
virtual float calculateScore (const std::vector< ScoreStatsType > &comps) const

Detailed Description

TER scoring

Definition at line 20 of file TerScorer.h.

Constructor & Destructor Documentation

MosesTuning::TerScorer::TerScorer ( const std::string &  config = ""  )  [explicit]

MosesTuning::TerScorer::~TerScorer (  ) 

Definition at line 22 of file TerScorer.cpp.

Member Function Documentation

virtual float MosesTuning::TerScorer::calculateScore ( const std::vector< ScoreStatsType > &  totals  )  const [virtual]

Calculate the actual score.

Implements MosesTuning::StatisticsBasedScorer.

virtual std::size_t MosesTuning::TerScorer::NumberOfScores (  )  const [inline, virtual]

Return the number of statistics needed for the computation of the score.

Implements MosesTuning::Scorer.

Definition at line 29 of file TerScorer.h.

virtual void MosesTuning::TerScorer::prepareStats ( std::size_t  sindex,
const std::string &  text,
ScoreStats entry 
) [virtual]

Process the given guessed text, corresponding to the given reference sindex and add the appropriate statistics to the entry.

Reimplemented from MosesTuning::Scorer.

virtual void MosesTuning::TerScorer::setReferenceFiles ( const std::vector< std::string > &  referenceFiles  )  [virtual]

Set the reference files. This must be called before prepareStats().

Reimplemented from MosesTuning::Scorer.

The documentation for this class was generated from the following files:

Generated on Thu Jul 6 00:34:21 2017 for Moses by  doxygen 1.5.9