#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< ScoreStatsType > &comps) const |
| bool | EnableDebug () const |
| float | weight (int item) const |
Definition at line 27 of file SemposScorer.h.
| MosesTuning::SemposScorer::SemposScorer | ( | const std::string & | config | ) | [explicit] |
| MosesTuning::SemposScorer::~SemposScorer | ( | ) |
Definition at line 33 of file SemposScorer.cpp.
| virtual float MosesTuning::SemposScorer::calculateScore | ( | const std::vector< ScoreStatsType > & | totals | ) | const [inline, virtual] |
Calculate the actual score.
Implements MosesTuning::StatisticsBasedScorer.
Definition at line 38 of file SemposScorer.h.
| bool MosesTuning::SemposScorer::EnableDebug | ( | ) | const [inline] |
Definition at line 42 of file SemposScorer.h.
| virtual std::size_t MosesTuning::SemposScorer::NumberOfScores | ( | ) | const [inline, virtual] |
Return the number of statistics needed for the computation of the score.
Implements MosesTuning::Scorer.
Definition at line 35 of file SemposScorer.h.
| virtual void MosesTuning::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 MosesTuning::Scorer.
| virtual void MosesTuning::SemposScorer::setReferenceFiles | ( | const std::vector< std::string > & | referenceFiles | ) | [virtual] |
Set the reference files. This must be called before prepareStats().
Reimplemented from MosesTuning::Scorer.
| float MosesTuning::SemposScorer::weight | ( | int | item | ) | const |
Definition at line 144 of file SemposScorer.cpp.
Referenced by MosesTuning::CapMacroOverlapping::prepareStats(), and MosesTuning::CapMicroOverlapping::prepareStats().

1.5.9