#include <TerScorer.h>
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< int > &comps) const |
Definition at line 16 of file TerScorer.h.
TerScorer::TerScorer | ( | const std::string & | config = "" |
) | [explicit] |
TerScorer::~TerScorer | ( | ) |
Definition at line 18 of file TerScorer.cpp.
virtual float TerScorer::calculateScore | ( | const std::vector< int > & | totals | ) | const [virtual] |
Calculate the actual score.
Implements StatisticsBasedScorer.
Referenced by MergeScorer::calculateScore().
virtual std::size_t TerScorer::NumberOfScores | ( | ) | const [inline, virtual] |
Return the number of statistics needed for the computation of the score.
Implements Scorer.
Definition at line 25 of file TerScorer.h.
Referenced by MergeScorer::calculateScore().
virtual void 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 Scorer.
virtual void TerScorer::setReferenceFiles | ( | const std::vector< std::string > & | referenceFiles | ) | [virtual] |
Set the reference files. This must be called before prepareStats().
Reimplemented from Scorer.