#include <HwcmScorer.h>
Public Member Functions | |
HwcmScorer (const std::string &config="") | |
~HwcmScorer () | |
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 |
virtual float | getReferenceLength (const std::vector< ScoreStatsType > &totals) const |
bool | useAlignment () const |
Definition at line 20 of file HwcmScorer.h.
MosesTuning::HwcmScorer::HwcmScorer | ( | const std::string & | config = "" |
) | [explicit] |
MosesTuning::HwcmScorer::~HwcmScorer | ( | ) |
Definition at line 23 of file HwcmScorer.cpp.
virtual float MosesTuning::HwcmScorer::calculateScore | ( | const std::vector< ScoreStatsType > & | totals | ) | const [virtual] |
Calculate the actual score.
Implements MosesTuning::StatisticsBasedScorer.
virtual float MosesTuning::HwcmScorer::getReferenceLength | ( | const std::vector< ScoreStatsType > & | totals | ) | const [inline, virtual] |
Based on vector of sufficient statistics, return length of reference.
Reimplemented from MosesTuning::StatisticsBasedScorer.
Definition at line 35 of file HwcmScorer.h.
virtual std::size_t MosesTuning::HwcmScorer::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 HwcmScorer.h.
References MosesTuning::kHwcmOrder.
virtual void MosesTuning::HwcmScorer::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::HwcmScorer::setReferenceFiles | ( | const std::vector< std::string > & | referenceFiles | ) | [virtual] |
Set the reference files. This must be called before prepareStats().
Reimplemented from MosesTuning::Scorer.
bool MosesTuning::HwcmScorer::useAlignment | ( | ) | const [inline, virtual] |
The scorer returns if it uses the reference alignment data for permutation distance scores
Reimplemented from MosesTuning::Scorer.
Definition at line 40 of file HwcmScorer.h.