#include <InputWeightFF.h>
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 |
Definition at line 12 of file InputWeightFF.h.
Moses::Syntax::InputWeightFF::InputWeightFF | ( | const std::string & | line | ) |
Definition at line 14 of file InputWeightFF.cpp.
References Moses::FeatureFunction::ReadParameters().
void Moses::Syntax::InputWeightFF::EvaluateInIsolation | ( | const Phrase & | , | |
const TargetPhrase & | , | |||
ScoreComponentCollection & | , | |||
ScoreComponentCollection & | ||||
) | const [inline, virtual] |
void Moses::Syntax::InputWeightFF::EvaluateTranslationOptionListWithSourceContext | ( | const InputType & | , | |
const TranslationOptionList & | ||||
) | const [inline, virtual] |
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().
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] |
bool Moses::Syntax::InputWeightFF::IsUseable | ( | const FactorMask & | mask | ) | const [inline, virtual] |
void Moses::Syntax::InputWeightFF::SetParameter | ( | const std::string & | key, | |
const std::string & | value | |||
) | [virtual] |