MosesTuning::HwcmScorer Class Reference

#include <HwcmScorer.h>

Inheritance diagram for MosesTuning::HwcmScorer:

Inheritance graph
Collaboration diagram for MosesTuning::HwcmScorer:

Collaboration graph

List of all members.

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

Detailed Description

HWCM scoring (Liu and Gildea 2005), but F1 instead of precision.

Definition at line 20 of file HwcmScorer.h.

Constructor & Destructor Documentation

MosesTuning::HwcmScorer::HwcmScorer ( const std::string &  config = ""  )  [explicit]

MosesTuning::HwcmScorer::~HwcmScorer (  ) 

Definition at line 23 of file HwcmScorer.cpp.

Member Function Documentation

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.

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

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