MosesTuning::NbestHopeFearDecoder Class Reference

#include <HopeFearDecoder.h>

Inheritance diagram for MosesTuning::NbestHopeFearDecoder:

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

Collaboration graph
[legend]

List of all members.

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)


Detailed Description

Gets hope-fear from nbest lists

Definition at line 96 of file HopeFearDecoder.h.


Constructor & Destructor Documentation

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 
)


Member Function Documentation

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

Implements MosesTuning::HopeFearDecoder.

Definition at line 171 of file HopeFearDecoder.cpp.

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

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().

Here is the call graph for this function:

void MosesTuning::NbestHopeFearDecoder::next (  )  [virtual]

Implements MosesTuning::HopeFearDecoder.

Definition at line 166 of file HopeFearDecoder.cpp.

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

Implements MosesTuning::HopeFearDecoder.

Definition at line 176 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