#include <HopeFearDecoder.h>
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 | |
Scorer * | scorer_ |
Definition at line 64 of file HopeFearDecoder.h.
virtual MosesTuning::HopeFearDecoder::~HopeFearDecoder | ( | ) | [inline, virtual] |
Definition at line 72 of file HopeFearDecoder.h.
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.
virtual bool MosesTuning::HopeFearDecoder::finished | ( | ) | [pure virtual] |
Implemented in MosesTuning::NbestHopeFearDecoder, and MosesTuning::HypergraphHopeFearDecoder.
Referenced by Evaluate().
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().
virtual void MosesTuning::HopeFearDecoder::next | ( | ) | [pure virtual] |
Implemented in MosesTuning::NbestHopeFearDecoder, and MosesTuning::HypergraphHopeFearDecoder.
Referenced by Evaluate().
virtual void MosesTuning::HopeFearDecoder::reset | ( | ) | [pure virtual] |
Implemented in MosesTuning::NbestHopeFearDecoder, and MosesTuning::HypergraphHopeFearDecoder.
Referenced by Evaluate().
Scorer* MosesTuning::HopeFearDecoder::scorer_ [protected] |
Definition at line 91 of file HopeFearDecoder.h.
Referenced by Evaluate(), and MosesTuning::NbestHopeFearDecoder::HopeFear().