Moses::VW Class Reference

#include <VW.h>

Inheritance diagram for Moses::VW:

Inheritance graph
[legend]
Collaboration diagram for Moses::VW:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 VW (const std::string &line)
virtual ~VW ()
bool IsUseable (const FactorMask &mask) const
void EvaluateInIsolation (const Phrase &source, const TargetPhrase &targetPhrase, ScoreComponentCollection &scoreBreakdown, ScoreComponentCollection &estimatedFutureScore) const
void EvaluateWithSourceContext (const InputType &input, const InputPath &inputPath, const TargetPhrase &targetPhrase, const StackVec *stackVec, ScoreComponentCollection &scoreBreakdown, ScoreComponentCollection *estimatedFutureScore=NULL) const
virtual void EvaluateTranslationOptionListWithSourceContext (const InputType &input, const TranslationOptionList &translationOptionList) const
virtual FFStateEvaluateWhenApplied (const Hypothesis &curHypo, const FFState *prevState, ScoreComponentCollection *accumulator) const
 This interface should be implemented. Notes: When evaluating the value of this feature function, you should avoid calling hypo.GetPrevHypo(). If you need something from the "previous" hypothesis, you should store it in an FFState object which will be passed in as prev_state. If you don't do this, you will get in trouble.
virtual FFStateEvaluateWhenApplied (const ChartHypothesis &, int, ScoreComponentCollection *accumulator) const
const FFStateEmptyHypothesisState (const InputType &input) const
 return the state associated with the empty hypothesis for a given sentence
void SetParameter (const std::string &key, const std::string &value)
virtual void InitializeForInput (ttasksptr const &ttask)
 Called before search and collecting of translation options.


Detailed Description

Definition at line 67 of file VW.h.


Constructor & Destructor Documentation

Moses::VW::VW ( const std::string &  line  ) 

Moses::VW::~VW (  )  [virtual]

Definition at line 69 of file VW.cpp.


Member Function Documentation

const FFState * Moses::VW::EmptyHypothesisState ( const InputType input  )  const [virtual]

return the state associated with the empty hypothesis for a given sentence

Implements Moses::StatefulFeatureFunction.

Definition at line 183 of file VW.cpp.

References Moses::Phrase::AddWord(), Moses::VWFeatureBase::GetMaximumContextSize(), and Moses::FeatureFunction::GetScoreProducerDescription().

Here is the call graph for this function:

void Moses::VW::EvaluateInIsolation ( const Phrase source,
const TargetPhrase targetPhrase,
ScoreComponentCollection scoreBreakdown,
ScoreComponentCollection estimatedFutureScore 
) const [inline, virtual]

Reimplemented from Moses::StatefulFeatureFunction.

Definition at line 78 of file VW.h.

void Moses::VW::EvaluateTranslationOptionListWithSourceContext ( const InputType input,
const TranslationOptionList translationOptionList 
) const [virtual]

virtual FFState* Moses::VW::EvaluateWhenApplied ( const ChartHypothesis ,
int  ,
ScoreComponentCollection accumulator 
) const [inline, virtual]

Implements Moses::StatefulFeatureFunction.

Definition at line 122 of file VW.h.

FFState * Moses::VW::EvaluateWhenApplied ( const Hypothesis cur_hypo,
const FFState prev_state,
ScoreComponentCollection accumulator 
) const [virtual]

void Moses::VW::EvaluateWithSourceContext ( const InputType input,
const InputPath inputPath,
const TargetPhrase targetPhrase,
const StackVec stackVec,
ScoreComponentCollection scoreBreakdown,
ScoreComponentCollection estimatedFutureScore = NULL 
) const [inline, virtual]

Reimplemented from Moses::StatefulFeatureFunction.

Definition at line 84 of file VW.h.

void Moses::VW::InitializeForInput ( ttasksptr const &  ttask  )  [virtual]

bool Moses::VW::IsUseable ( const FactorMask mask  )  const [inline, virtual]

Implements Moses::FeatureFunction.

Definition at line 74 of file VW.h.

void Moses::VW::SetParameter ( const std::string &  key,
const std::string &  value 
) [virtual]

Reimplemented from Moses::FeatureFunction.

Definition at line 379 of file VW.cpp.

References Moses::Scan< bool >(), and UTIL_THROW2.

Here is the call graph for this function:


The documentation for this class was generated from the following files:

Generated on Thu Jul 6 00:33:13 2017 for Moses by  doxygen 1.5.9