#include <MergeScorer.h>
Public Member Functions | |
MergeScorer (const std::string &config="") | |
~MergeScorer () | |
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 |
Protected Member Functions | |
virtual float | calculateScore (const std::vector< int > &comps) const |
Friends | |
class | PerScorer |
Definition at line 17 of file MergeScorer.h.
MergeScorer::MergeScorer | ( | const std::string & | config = "" |
) | [explicit] |
MergeScorer::~MergeScorer | ( | ) |
Definition at line 20 of file MergeScorer.cpp.
float MergeScorer::calculateScore | ( | const std::vector< int > & | totals | ) | const [protected, virtual] |
Calculate the actual score.
Implements StatisticsBasedScorer.
Definition at line 42 of file MergeScorer.cpp.
References CderScorer::calculateScore(), PerScorer::calculateScore(), TerScorer::calculateScore(), BleuScorer::calculateScore(), CderScorer::NumberOfScores(), PerScorer::NumberOfScores(), TerScorer::NumberOfScores(), BleuScorer::NumberOfScores(), and PerScorer.
virtual std::size_t MergeScorer::NumberOfScores | ( | ) | const [inline, virtual] |
Return the number of statistics needed for the computation of the score.
Implements Scorer.
Definition at line 24 of file MergeScorer.h.
virtual void MergeScorer::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 MergeScorer::setReferenceFiles | ( | const std::vector< std::string > & | referenceFiles | ) | [virtual] |
Set the reference files. This must be called before prepareStats().
Reimplemented from Scorer.
friend class PerScorer [friend] |