MosesTuning::HypergraphHopeFearDecoder Class Reference

#include <HopeFearDecoder.h>

Inheritance diagram for MosesTuning::HypergraphHopeFearDecoder:

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

Collaboration graph
[legend]

List of all members.

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)


Detailed Description

Gets hope-fear from hypergraphs

Definition at line 128 of file HopeFearDecoder.h.


Constructor & Destructor Documentation

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_ 
)


Member Function Documentation

bool MosesTuning::HypergraphHopeFearDecoder::finished (  )  [virtual]

Implements MosesTuning::HopeFearDecoder.

Definition at line 326 of file HopeFearDecoder.cpp.

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]

Implements MosesTuning::HopeFearDecoder.

Definition at line 321 of file HopeFearDecoder.cpp.

void MosesTuning::HypergraphHopeFearDecoder::reset (  )  [virtual]

Implements MosesTuning::HopeFearDecoder.

Definition at line 316 of file HopeFearDecoder.cpp.


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