Moses::RulePairUnlexicalizedSource Class Reference

#include <RulePairUnlexicalizedSource.h>

Inheritance diagram for Moses::RulePairUnlexicalizedSource:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 RulePairUnlexicalizedSource (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

Protected Attributes

bool m_glueRules
bool m_nonGlueRules
std::string m_glueTargetLHSStr
const Factorm_glueTargetLHS


Detailed Description

Definition at line 12 of file RulePairUnlexicalizedSource.h.


Constructor & Destructor Documentation

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


Member Function Documentation

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

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

Implements Moses::FeatureFunction.

Definition at line 37 of file RulePairUnlexicalizedSource.h.

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

Same for chart-based features.

Implements Moses::StatelessFeatureFunction.

Definition at line 46 of file RulePairUnlexicalizedSource.h.

void Moses::RulePairUnlexicalizedSource::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 41 of file RulePairUnlexicalizedSource.h.

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

Implements Moses::FeatureFunction.

Definition at line 29 of file RulePairUnlexicalizedSource.h.

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

Implements Moses::FeatureFunction.

Definition at line 18 of file RulePairUnlexicalizedSource.h.

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

Reimplemented from Moses::FeatureFunction.

Definition at line 27 of file RulePairUnlexicalizedSource.cpp.

References m_glueRules, m_glueTargetLHSStr, m_nonGlueRules, and Moses::Scan< bool >().

Here is the call graph for this function:


Member Data Documentation

Definition at line 53 of file RulePairUnlexicalizedSource.h.

Referenced by EvaluateInIsolation(), and SetParameter().

Definition at line 55 of file RulePairUnlexicalizedSource.h.

Referenced by RulePairUnlexicalizedSource(), and SetParameter().

Definition at line 54 of file RulePairUnlexicalizedSource.h.

Referenced by EvaluateInIsolation(), and SetParameter().


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

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