MosesTuning::SentenceLevelScorer Class Reference

#include <SentenceLevelScorer.h>

Inheritance diagram for MosesTuning::SentenceLevelScorer:

Inheritance graph
[legend]
Collaboration diagram for MosesTuning::SentenceLevelScorer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SentenceLevelScorer (const std::string &name, const std::string &config)
 ~SentenceLevelScorer ()
virtual void score (const candidates_t &candidates, const diffs_t &diffs, statscores_t &scores)
virtual statscore_t calculateScore (const std::vector< statscore_t > &totals) const

Protected Member Functions

void Init ()

Protected Attributes

ScorerRegularisationStrategy m_regularisationStrategy
size_t m_regularisationWindow


Detailed Description

Abstract base class for scorers that work by using sentence level statistics (e.g., permutation distance metrics).

Definition at line 22 of file SentenceLevelScorer.h.


Constructor & Destructor Documentation

MosesTuning::SentenceLevelScorer::SentenceLevelScorer ( const std::string &  name,
const std::string &  config 
)

MosesTuning::SentenceLevelScorer::~SentenceLevelScorer (  ) 

Definition at line 27 of file SentenceLevelScorer.cpp.


Member Function Documentation

virtual statscore_t MosesTuning::SentenceLevelScorer::calculateScore ( const std::vector< statscore_t > &  totals  )  const [inline, virtual]

Calculate score based on a vector of sufficient statistics.

Implements MosesTuning::Scorer.

Definition at line 34 of file SentenceLevelScorer.h.

Referenced by score().

Here is the caller graph for this function:

void MosesTuning::SentenceLevelScorer::Init (  )  [protected]

void MosesTuning::SentenceLevelScorer::score ( const candidates_t candidates,
const diffs_t diffs,
statscores_t scores 
) [virtual]

The sentence level scores have already been calculated, just need to average them and include the differences. Allows scores which are floats.

Definition at line 66 of file SentenceLevelScorer.cpp.

References calculateScore(), end, MosesTuning::ScoreArray::get(), MosesTuning::ScoreStats::get(), MosesTuning::ScoreData::get(), k, m_regularisationStrategy, m_regularisationWindow, MosesTuning::Scorer::m_score_data, MosesTuning::REG_AVERAGE, MosesTuning::REG_NONE, sid, MosesTuning::ScoreStats::size(), MosesTuning::ScoreArray::size(), MosesTuning::ScoreData::size(), and Moses::stats.

Here is the call graph for this function:


Member Data Documentation

Definition at line 43 of file SentenceLevelScorer.h.

Referenced by Init(), and score().

Definition at line 44 of file SentenceLevelScorer.h.

Referenced by Init(), and score().


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