MosesTuning::SemposScorer Class Reference

#include <SemposScorer.h>

Inheritance diagram for MosesTuning::SemposScorer:

Inheritance graph
Collaboration diagram for MosesTuning::SemposScorer:

Collaboration graph

List of all members.

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

Detailed Description

This class represents sempos based metrics.

Definition at line 27 of file SemposScorer.h.

Constructor & Destructor Documentation

MosesTuning::SemposScorer::SemposScorer ( const std::string &  config  )  [explicit]

MosesTuning::SemposScorer::~SemposScorer (  ) 

Definition at line 33 of file SemposScorer.cpp.

Member Function Documentation

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().

Here is the caller graph for this function:

The documentation for this class was generated from the following files:

Generated on Thu Jul 6 00:34:20 2017 for Moses by  doxygen 1.5.9