#include <HopeFearDecoder.h>
Public Member Functions | |
HypergraphHopeFearDecoder (const std::string &hypergraphDir, const std::vector< std::string > &referenceFiles, size_t num_dense, bool streaming, bool no_shuffle, bool safe_hope, size_t hg_pruning, const MiraWeightVector &wv, 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 128 of file HopeFearDecoder.h.
MosesTuning::HypergraphHopeFearDecoder::HypergraphHopeFearDecoder | ( | const std::string & | hypergraphDir, | |
const std::vector< std::string > & | referenceFiles, | |||
size_t | num_dense, | |||
bool | streaming, | |||
bool | no_shuffle, | |||
bool | safe_hope, | |||
size_t | hg_pruning, | |||
const MiraWeightVector & | wv, | |||
Scorer * | scorer_ | |||
) |
bool MosesTuning::HypergraphHopeFearDecoder::finished | ( | ) | [virtual] |
virtual void MosesTuning::HypergraphHopeFearDecoder::HopeFear | ( | const std::vector< ValType > & | backgroundBleu, | |
const MiraWeightVector & | wv, | |||
HopeFearData * | hopeFear | |||
) | [virtual] |
Calculate hope, fear and model hypotheses
Implements MosesTuning::HopeFearDecoder.
virtual void MosesTuning::HypergraphHopeFearDecoder::MaxModel | ( | const AvgWeightVector & | wv, | |
std::vector< ValType > * | stats | |||
) | [virtual] |
Max score decoding
Implements MosesTuning::HopeFearDecoder.
void MosesTuning::HypergraphHopeFearDecoder::next | ( | ) | [virtual] |
void MosesTuning::HypergraphHopeFearDecoder::reset | ( | ) | [virtual] |