#include <HopeFearDecoder.h>


Public Member Functions | |
| NbestHopeFearDecoder (const std::vector< std::string > &featureFiles, const std::vector< std::string > &scoreFiles, bool streaming, bool no_shuffle, bool safe_hope, Scorer *scorer) | |
| virtual void | reset () |
| virtual void | next () |
| virtual bool | finished () |
| virtual void | HopeFear (const std::vector< ValType > &backgroundBleu, const MiraWeightVector &wv, HopeFearData *hopeFear) |
| virtual void | MaxModel (const AvgWeightVector &wv, std::vector< ValType > *stats) |
Definition at line 96 of file HopeFearDecoder.h.
| MosesTuning::NbestHopeFearDecoder::NbestHopeFearDecoder | ( | const std::vector< std::string > & | featureFiles, | |
| const std::vector< std::string > & | scoreFiles, | |||
| bool | streaming, | |||
| bool | no_shuffle, | |||
| bool | safe_hope, | |||
| Scorer * | scorer | |||
| ) |
| bool MosesTuning::NbestHopeFearDecoder::finished | ( | ) | [virtual] |
| void MosesTuning::NbestHopeFearDecoder::HopeFear | ( | const std::vector< ValType > & | backgroundBleu, | |
| const MiraWeightVector & | wv, | |||
| HopeFearData * | hopeFear | |||
| ) | [virtual] |
Calculate hope, fear and model hypotheses
Implements MosesTuning::HopeFearDecoder.
Definition at line 181 of file HopeFearDecoder.cpp.
References MosesTuning::Scorer::calculateSentenceLevelBackgroundScore(), MosesTuning::HopeFearData::fearBleu, MosesTuning::HopeFearData::fearFeatures, MosesTuning::HopeFearData::hopeBleu, MosesTuning::HopeFearData::hopeFearEqual, MosesTuning::HopeFearData::hopeFeatures, MosesTuning::HopeFearData::hopeStats, MosesTuning::HopeFearData::modelFeatures, MosesTuning::HopeFearData::modelStats, MosesTuning::MiraWeightVector::score(), and MosesTuning::HopeFearDecoder::scorer_.

| void MosesTuning::NbestHopeFearDecoder::MaxModel | ( | const AvgWeightVector & | wv, | |
| std::vector< ValType > * | stats | |||
| ) | [virtual] |
Max score decoding
Implements MosesTuning::HopeFearDecoder.
Definition at line 237 of file HopeFearDecoder.cpp.
References MosesTuning::AvgWeightVector::score().

| void MosesTuning::NbestHopeFearDecoder::next | ( | ) | [virtual] |
| void MosesTuning::NbestHopeFearDecoder::reset | ( | ) | [virtual] |
1.5.9