#include <CderScorer.h>
Public Member Functions | |
CderScorer (const std::string &config, bool allowed_long_jumps=true) | |
~CderScorer () | |
virtual void | setReferenceFiles (const std::vector< std::string > &referenceFiles) |
virtual void | prepareStats (std::size_t sid, const std::string &text, ScoreStats &entry) |
virtual void | prepareStatsVector (std::size_t sid, const std::string &text, std::vector< ScoreStatsType > &stats) |
virtual std::size_t | NumberOfScores () const |
virtual float | calculateScore (const std::vector< ScoreStatsType > &comps) const |
Definition at line 16 of file CderScorer.h.
MosesTuning::CderScorer::CderScorer | ( | const std::string & | config, | |
bool | allowed_long_jumps = true | |||
) | [explicit] |
MosesTuning::CderScorer::~CderScorer | ( | ) |
Definition at line 27 of file CderScorer.cpp.
virtual float MosesTuning::CderScorer::calculateScore | ( | const std::vector< ScoreStatsType > & | totals | ) | const [virtual] |
Calculate the actual score.
Implements MosesTuning::StatisticsBasedScorer.
virtual std::size_t MosesTuning::CderScorer::NumberOfScores | ( | ) | const [inline, virtual] |
Return the number of statistics needed for the computation of the score.
Implements MosesTuning::Scorer.
Definition at line 28 of file CderScorer.h.
virtual void MosesTuning::CderScorer::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::CderScorer::prepareStatsVector | ( | std::size_t | sid, | |
const std::string & | text, | |||
std::vector< ScoreStatsType > & | stats | |||
) | [virtual] |
virtual void MosesTuning::CderScorer::setReferenceFiles | ( | const std::vector< std::string > & | referenceFiles | ) | [virtual] |
Set the reference files. This must be called before prepareStats().
Reimplemented from MosesTuning::Scorer.