MosesTuning::HopeFearDecoder Class Reference

#include <HopeFearDecoder.h>

Inheritance diagram for MosesTuning::HopeFearDecoder:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void reset ()=0
virtual void next ()=0
virtual bool finished ()=0
virtual ~HopeFearDecoder ()
virtual void HopeFear (const std::vector< ValType > &backgroundBleu, const MiraWeightVector &wv, HopeFearData *hopeFear)=0
virtual void MaxModel (const AvgWeightVector &wv, std::vector< ValType > *stats)=0
ValType Evaluate (const AvgWeightVector &wv)

Protected Attributes

Scorerscorer_


Detailed Description

Definition at line 64 of file HopeFearDecoder.h.


Constructor & Destructor Documentation

virtual MosesTuning::HopeFearDecoder::~HopeFearDecoder (  )  [inline, virtual]

Definition at line 72 of file HopeFearDecoder.h.


Member Function Documentation

ValType MosesTuning::HopeFearDecoder::Evaluate ( const AvgWeightVector wv  ) 

Calculate bleu on training set

Definition at line 135 of file HopeFearDecoder.cpp.

References MosesTuning::Scorer::calculateScore(), finished(), MaxModel(), next(), MosesTuning::Scorer::NumberOfScores(), reset(), scorer_, and Moses::stats.

Here is the call graph for this function:

virtual bool MosesTuning::HopeFearDecoder::finished (  )  [pure virtual]

Implemented in MosesTuning::NbestHopeFearDecoder, and MosesTuning::HypergraphHopeFearDecoder.

Referenced by Evaluate().

Here is the caller graph for this function:

virtual void MosesTuning::HopeFearDecoder::HopeFear ( const std::vector< ValType > &  backgroundBleu,
const MiraWeightVector wv,
HopeFearData hopeFear 
) [pure virtual]

Calculate hope, fear and model hypotheses

Implemented in MosesTuning::NbestHopeFearDecoder, and MosesTuning::HypergraphHopeFearDecoder.

virtual void MosesTuning::HopeFearDecoder::MaxModel ( const AvgWeightVector wv,
std::vector< ValType > *  stats 
) [pure virtual]

Max score decoding

Implemented in MosesTuning::NbestHopeFearDecoder, and MosesTuning::HypergraphHopeFearDecoder.

Referenced by Evaluate().

Here is the caller graph for this function:

virtual void MosesTuning::HopeFearDecoder::next (  )  [pure virtual]

Implemented in MosesTuning::NbestHopeFearDecoder, and MosesTuning::HypergraphHopeFearDecoder.

Referenced by Evaluate().

Here is the caller graph for this function:

virtual void MosesTuning::HopeFearDecoder::reset (  )  [pure virtual]

Implemented in MosesTuning::NbestHopeFearDecoder, and MosesTuning::HypergraphHopeFearDecoder.

Referenced by Evaluate().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 91 of file HopeFearDecoder.h.

Referenced by Evaluate(), and MosesTuning::NbestHopeFearDecoder::HopeFear().


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