Moses::Model1Feature Class Reference

#include <Model1Feature.h>

Inheritance diagram for Moses::Model1Feature:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Model1Feature (const std::string &line)
bool IsUseable (const FactorMask &mask) const
void SetParameter (const std::string &key, const std::string &value)
void EvaluateInIsolation (const Phrase &source, const TargetPhrase &targetPhrase, ScoreComponentCollection &scoreBreakdown, ScoreComponentCollection &estimatedScores) const
void EvaluateWithSourceContext (const InputType &input, const InputPath &inputPath, const TargetPhrase &targetPhrase, const StackVec *stackVec, ScoreComponentCollection &scoreBreakdown, ScoreComponentCollection *estimatedScores=NULL) const
void EvaluateTranslationOptionListWithSourceContext (const InputType &input, const TranslationOptionList &translationOptionList) const
void EvaluateWhenApplied (const Hypothesis &cur_hypo, ScoreComponentCollection *accumulator) const
void EvaluateWhenApplied (const ChartHypothesis &cur_hypo, ScoreComponentCollection *accumulator) const
void CleanUpAfterSentenceProcessing (const InputType &source)


Detailed Description

Definition at line 56 of file Model1Feature.h.


Constructor & Destructor Documentation

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

Definition at line 141 of file Model1Feature.cpp.

References Moses::FeatureFunction::GetScoreProducerDescription(), Moses::FeatureFunction::ReadParameters(), and VERBOSE.

Here is the call graph for this function:


Member Function Documentation

void Moses::Model1Feature::CleanUpAfterSentenceProcessing ( const InputType source  )  [virtual]

Reimplemented from Moses::FeatureFunction.

Definition at line 261 of file Model1Feature.cpp.

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

Implements Moses::FeatureFunction.

Definition at line 67 of file Model1Feature.h.

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

Implements Moses::FeatureFunction.

Definition at line 80 of file Model1Feature.h.

void Moses::Model1Feature::EvaluateWhenApplied ( const ChartHypothesis hypo,
ScoreComponentCollection accumulator 
) const [inline, virtual]

Same for chart-based features.

Implements Moses::StatelessFeatureFunction.

Definition at line 89 of file Model1Feature.h.

void Moses::Model1Feature::EvaluateWhenApplied ( const Hypothesis hypo,
ScoreComponentCollection accumulator 
) const [inline, virtual]

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

Implements Moses::StatelessFeatureFunction.

Definition at line 84 of file Model1Feature.h.

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

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

Implements Moses::FeatureFunction.

Definition at line 61 of file Model1Feature.h.

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

Reimplemented from Moses::FeatureFunction.

Definition at line 151 of file Model1Feature.cpp.

References Moses::Scan< bool >().

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:07 2017 for Moses by  doxygen 1.5.9