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