#include <SemposScorer.h>
Public Member Functions | |
SemposScorer (const std::string &config) | |
~SemposScorer () | |
virtual void | setReferenceFiles (const std::vector< std::string > &referenceFiles) |
virtual void | prepareStats (std::size_t sindex, const std::string &text, ScoreStats &entry) |
virtual std::size_t | NumberOfScores () const |
virtual float | calculateScore (const std::vector< int > &comps) const |
bool | EnableDebug () const |
float | weight (int item) const |
Definition at line 23 of file SemposScorer.h.
SemposScorer::SemposScorer | ( | const std::string & | config | ) | [explicit] |
SemposScorer::~SemposScorer | ( | ) |
Definition at line 30 of file SemposScorer.cpp.
virtual float SemposScorer::calculateScore | ( | const std::vector< int > & | totals | ) | const [inline, virtual] |
Calculate the actual score.
Implements StatisticsBasedScorer.
Definition at line 32 of file SemposScorer.h.
bool SemposScorer::EnableDebug | ( | ) | const [inline] |
Definition at line 36 of file SemposScorer.h.
virtual std::size_t SemposScorer::NumberOfScores | ( | ) | const [inline, virtual] |
Return the number of statistics needed for the computation of the score.
Implements Scorer.
Definition at line 31 of file SemposScorer.h.
virtual void SemposScorer::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 SemposScorer::setReferenceFiles | ( | const std::vector< std::string > & | referenceFiles | ) | [virtual] |
Set the reference files. This must be called before prepareStats().
Reimplemented from Scorer.
float SemposScorer::weight | ( | int | item | ) | const |
Definition at line 141 of file SemposScorer.cpp.
Referenced by CapMacroOverlapping::prepareStats(), and CapMicroOverlapping::prepareStats().