SemposScorer Class Reference

#include <SemposScorer.h>

Inheritance diagram for SemposScorer:

Inheritance graph
[legend]
Collaboration diagram for SemposScorer:

Collaboration graph
[legend]

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< int > &comps) const
bool EnableDebug () const
float weight (int item) const


Detailed Description

This class represents sempos based metrics.

Definition at line 23 of file SemposScorer.h.


Constructor & Destructor Documentation

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

SemposScorer::~SemposScorer (  ) 

Definition at line 30 of file SemposScorer.cpp.


Member Function Documentation

virtual float SemposScorer::calculateScore ( const std::vector< int > &  totals  )  const [inline, virtual]

Calculate the actual score.

Implements StatisticsBasedScorer.

Definition at line 32 of file SemposScorer.h.

bool SemposScorer::EnableDebug (  )  const [inline]

Definition at line 36 of file SemposScorer.h.

virtual std::size_t SemposScorer::NumberOfScores (  )  const [inline, virtual]

Return the number of statistics needed for the computation of the score.

Implements Scorer.

Definition at line 31 of file SemposScorer.h.

virtual void 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 Scorer.

virtual void SemposScorer::setReferenceFiles ( const std::vector< std::string > &  referenceFiles  )  [virtual]

Set the reference files. This must be called before prepareStats().

Reimplemented from Scorer.

float SemposScorer::weight ( int  item  )  const

Definition at line 141 of file SemposScorer.cpp.

Referenced by CapMacroOverlapping::prepareStats(), and CapMicroOverlapping::prepareStats().

Here is the caller graph for this function:


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

Generated on Sat Jun 30 00:30:12 2012 for Moses by  doxygen 1.5.9