Moses::Syntax::InputWeightFF Class Reference

#include <InputWeightFF.h>

Inheritance diagram for Moses::Syntax::InputWeightFF:

Inheritance graph
[legend]
Collaboration diagram for Moses::Syntax::InputWeightFF:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 InputWeightFF (const std::string &line)
bool IsUseable (const FactorMask &mask) const
void EvaluateWhenApplied (const Hypothesis &hypo, ScoreComponentCollection *accumulator) const
void EvaluateWhenApplied (const ChartHypothesis &hypo, ScoreComponentCollection *accumulator) const
void EvaluateWhenApplied (const Syntax::SHyperedge &hyperedge, ScoreComponentCollection *accumulator) const
void SetParameter (const std::string &key, const std::string &value)
void EvaluateInIsolation (const Phrase &, const TargetPhrase &, ScoreComponentCollection &, ScoreComponentCollection &) const
void EvaluateWithSourceContext (const InputType &, const InputPath &, const TargetPhrase &, const StackVec *, ScoreComponentCollection &, ScoreComponentCollection *) const
void EvaluateTranslationOptionListWithSourceContext (const InputType &, const TranslationOptionList &) const


Detailed Description

Definition at line 12 of file InputWeightFF.h.


Constructor & Destructor Documentation

Moses::Syntax::InputWeightFF::InputWeightFF ( const std::string &  line  ) 

Definition at line 14 of file InputWeightFF.cpp.

References Moses::FeatureFunction::ReadParameters().

Here is the call graph for this function:


Member Function Documentation

void Moses::Syntax::InputWeightFF::EvaluateInIsolation ( const Phrase &  ,
const TargetPhrase &  ,
ScoreComponentCollection &  ,
ScoreComponentCollection &   
) const [inline, virtual]

Implements Moses::FeatureFunction.

Definition at line 35 of file InputWeightFF.h.

void Moses::Syntax::InputWeightFF::EvaluateTranslationOptionListWithSourceContext ( const InputType &  ,
const TranslationOptionList &   
) const [inline, virtual]

Implements Moses::FeatureFunction.

Definition at line 44 of file InputWeightFF.h.

void Moses::Syntax::InputWeightFF::EvaluateWhenApplied ( const Syntax::SHyperedge &  hyperedge,
ScoreComponentCollection *  accumulator 
) const [virtual]

Reimplemented from Moses::StatelessFeatureFunction.

Definition at line 34 of file InputWeightFF.cpp.

References Moses::Syntax::SLabel::inputWeight, Moses::Syntax::SHyperedge::label, and Moses::ScoreComponentCollection::PlusEquals().

Here is the call graph for this function:

void Moses::Syntax::InputWeightFF::EvaluateWhenApplied ( const ChartHypothesis &  hypo,
ScoreComponentCollection *  accumulator 
) const [virtual]

Same for chart-based features.

Implements Moses::StatelessFeatureFunction.

Definition at line 27 of file InputWeightFF.cpp.

void Moses::Syntax::InputWeightFF::EvaluateWhenApplied ( const Hypothesis &  hypo,
ScoreComponentCollection *  accumulator 
) const [virtual]

This should be implemented for features that apply to phrase-based models.

Implements Moses::StatelessFeatureFunction.

Definition at line 20 of file InputWeightFF.cpp.

void Moses::Syntax::InputWeightFF::EvaluateWithSourceContext ( const InputType &  ,
const InputPath &  ,
const TargetPhrase &  ,
const StackVec *  ,
ScoreComponentCollection &  ,
ScoreComponentCollection *   
) const [inline, virtual]

Implements Moses::FeatureFunction.

Definition at line 39 of file InputWeightFF.h.

bool Moses::Syntax::InputWeightFF::IsUseable ( const FactorMask &  mask  )  const [inline, virtual]

Implements Moses::FeatureFunction.

Definition at line 17 of file InputWeightFF.h.

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

Reimplemented from Moses::FeatureFunction.

Definition at line 41 of file InputWeightFF.cpp.


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

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