CderScorer Class Reference

#include <CderScorer.h>

Inheritance diagram for CderScorer:

Inheritance graph
[legend]
Collaboration diagram for CderScorer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CderScorer (const std::string &config, bool allowed_long_jumps=true)
 ~CderScorer ()
virtual void setReferenceFiles (const std::vector< std::string > &referenceFiles)
virtual void prepareStats (std::size_t sid, const std::string &text, ScoreStats &entry)
virtual void prepareStatsVector (std::size_t sid, const std::string &text, std::vector< int > &stats)
virtual std::size_t NumberOfScores () const
virtual float calculateScore (const std::vector< int > &comps) const


Detailed Description

CderScorer class can compute both CDER and WER metric.

Definition at line 12 of file CderScorer.h.


Constructor & Destructor Documentation

CderScorer::CderScorer ( const std::string &  config,
bool  allowed_long_jumps = true 
) [explicit]

CderScorer::~CderScorer (  ) 

Definition at line 21 of file CderScorer.cpp.


Member Function Documentation

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

Calculate the actual score.

Implements StatisticsBasedScorer.

Referenced by MergeScorer::calculateScore().

Here is the caller graph for this function:

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

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

Implements Scorer.

Definition at line 23 of file CderScorer.h.

Referenced by MergeScorer::calculateScore().

Here is the caller graph for this function:

virtual void CderScorer::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 CderScorer::prepareStatsVector ( std::size_t  sid,
const std::string &  text,
std::vector< int > &  stats 
) [virtual]

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

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

Reimplemented from Scorer.


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

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