MergeScorer Class Reference

#include <MergeScorer.h>

Inheritance diagram for MergeScorer:

Inheritance graph
[legend]
Collaboration diagram for MergeScorer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 MergeScorer (const std::string &config="")
 ~MergeScorer ()
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

Protected Member Functions

virtual float calculateScore (const std::vector< int > &comps) const

Friends

class PerScorer


Detailed Description

Merge scoring.

Definition at line 17 of file MergeScorer.h.


Constructor & Destructor Documentation

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

MergeScorer::~MergeScorer (  ) 

Definition at line 20 of file MergeScorer.cpp.


Member Function Documentation

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

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

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

Implements Scorer.

Definition at line 24 of file MergeScorer.h.

virtual void MergeScorer::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 MergeScorer::setReferenceFiles ( const std::vector< std::string > &  referenceFiles  )  [virtual]

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

Reimplemented from Scorer.


Friends And Related Function Documentation

friend class PerScorer [friend]

Definition at line 27 of file MergeScorer.h.

Referenced by calculateScore().


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