Moses::PhraseBasedFeatureContext Class Reference

#include <PhraseBasedFeatureContext.h>

Collaboration diagram for Moses::PhraseBasedFeatureContext:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PhraseBasedFeatureContext (const Hypothesis *hypothesis)
 PhraseBasedFeatureContext (const TranslationOption &translationOption, const InputType &source)
const TranslationOptionGetTranslationOption () const
const InputTypeGetSource () const
const TargetPhraseGetTargetPhrase () const
const WordsBitmapGetWordsBitmap () const


Detailed Description

Contains all that a feature function can access without affecting recombination. For stateless features, this is all that it can access. Currently this is not used for stateful features, as it would need to be retro-fitted to the LM feature. TODO: Expose source segmentation,lattice path. XXX Don't add anything to the context that would break recombination XXX

Definition at line 18 of file PhraseBasedFeatureContext.h.


Constructor & Destructor Documentation

Moses::PhraseBasedFeatureContext::PhraseBasedFeatureContext ( const Hypothesis hypothesis  ) 

Definition at line 8 of file PhraseBasedFeatureContext.cpp.

Moses::PhraseBasedFeatureContext::PhraseBasedFeatureContext ( const TranslationOption translationOption,
const InputType source 
)

Definition at line 14 of file PhraseBasedFeatureContext.cpp.


Member Function Documentation

const InputType& Moses::PhraseBasedFeatureContext::GetSource (  )  const [inline]

Definition at line 34 of file PhraseBasedFeatureContext.h.

Referenced by Moses::WordTranslationFeature::Evaluate(), and Moses::PhrasePairFeature::Evaluate().

Here is the caller graph for this function:

const TargetPhrase & Moses::PhraseBasedFeatureContext::GetTargetPhrase (  )  const

Definition at line 20 of file PhraseBasedFeatureContext.cpp.

References Moses::TranslationOption::GetTargetPhrase().

Referenced by Moses::WordTranslationFeature::Evaluate(), Moses::PhrasePairFeature::Evaluate(), and Moses::GlobalLexicalModel::Evaluate().

Here is the call graph for this function:

Here is the caller graph for this function:

const TranslationOption& Moses::PhraseBasedFeatureContext::GetTranslationOption (  )  const [inline]

Definition at line 31 of file PhraseBasedFeatureContext.h.

Referenced by Moses::WordTranslationFeature::Evaluate(), and Moses::PhrasePairFeature::Evaluate().

Here is the caller graph for this function:

const WordsBitmap & Moses::PhraseBasedFeatureContext::GetWordsBitmap (  )  const

Definition at line 25 of file PhraseBasedFeatureContext.cpp.

References Moses::Hypothesis::GetWordsBitmap().

Here is the call graph for this function:


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

Generated on Thu Jun 4 00:32:09 2015 for Moses by  doxygen 1.5.9