Moses::DecodeStep Class Reference

#include <DecodeStep.h>

Inheritance diagram for Moses::DecodeStep:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 DecodeStep ()
 DecodeStep (DecodeFeature *featurePtr, const DecodeStep *prevDecodeStep, const std::vector< FeatureFunction * > &features)
 not implemented
virtual ~DecodeStep ()
const FactorMaskGetOutputFactorMask () const
 mask of factors that are present after this decode step
bool IsFilteringStep () const
 returns true if this decode step must match some pre-existing factors
bool IsFactorProducingStep () const
 returns true if this decode step produces one or more new factors
const std::vector
< FeatureFunction * > & 
GetFeaturesRemaining () const
const std::vector< FactorType > & GetNewOutputFactors () const
const std::vector< FactorType > & GetConflictFactors () const
const PhraseDictionaryGetPhraseDictionaryFeature () const
const GenerationDictionaryGetGenerationDictionaryFeature () const
void RemoveFeature (const FeatureFunction *ff)
void SetContainer (const DecodeGraph *container)
const DecodeGraphGetContainer () const

Protected Attributes

FactorMask m_outputFactors
std::vector< FactorTypem_conflictFactors
 mask of what factors exist on the output side after this decode step
std::vector< FactorTypem_newOutputFactors
 list of the factors that may conflict during this step
const DecodeFeaturem_decodeFeature
 list of the factors that are new in this step, may be empty
const DecodeGraphm_container
std::vector< FeatureFunction * > m_featuresToApply
std::vector< FeatureFunction * > m_featuresRemaining


Detailed Description

Specification for a decoding step. The factored translation model consists of Translation and Generation steps, which consult a Dictionary of phrase translations or word generations. This class implements the specification for one of these steps, both the DecodeType and a pointer to the Translation or Generation Feature

Definition at line 49 of file DecodeStep.h.


Constructor & Destructor Documentation

Moses::DecodeStep::DecodeStep (  ) 

Moses::DecodeStep::DecodeStep ( DecodeFeature featurePtr,
const DecodeStep prevDecodeStep,
const std::vector< FeatureFunction * > &  features 
)

Moses::DecodeStep::~DecodeStep (  )  [virtual]

Definition at line 64 of file DecodeStep.cpp.


Member Function Documentation

const std::vector<FactorType>& Moses::DecodeStep::GetConflictFactors (  )  const [inline]

returns a list (possibly empty) of the (target side) factors that are produced BUT ALREADY EXIST and therefore must be checked for conflict or compatibility

Definition at line 96 of file DecodeStep.h.

References m_conflictFactors.

const DecodeGraph* Moses::DecodeStep::GetContainer (  )  const [inline]

Definition at line 111 of file DecodeStep.h.

References m_container.

Referenced by Moses::DecodeFeature::GetDecodeGraph().

Here is the caller graph for this function:

const std::vector<FeatureFunction*>& Moses::DecodeStep::GetFeaturesRemaining (  )  const [inline]

Definition at line 81 of file DecodeStep.h.

References m_featuresRemaining.

Referenced by Moses::StaticData::LoadDecodeGraphsNew().

Here is the caller graph for this function:

const GenerationDictionary * Moses::DecodeStep::GetGenerationDictionaryFeature (  )  const

returns generation table feature for generation step

returns generation feature (dictionary) for generation step

Definition at line 73 of file DecodeStep.cpp.

References m_decodeFeature.

Referenced by Moses::DecodeStepGeneration::Process().

Here is the caller graph for this function:

const std::vector<FactorType>& Moses::DecodeStep::GetNewOutputFactors (  )  const [inline]

returns a list (possibly empty) of the (target side) factors that are produced in this decoding step. For example, if a previous step generated factor 1, and this step generates 1,2, then only 2 will be in the returned vector.

Definition at line 89 of file DecodeStep.h.

References m_newOutputFactors.

const FactorMask& Moses::DecodeStep::GetOutputFactorMask (  )  const [inline]

mask of factors that are present after this decode step

Definition at line 67 of file DecodeStep.h.

References m_outputFactors.

const PhraseDictionary * Moses::DecodeStep::GetPhraseDictionaryFeature (  )  const

returns phrase table feature for translation step

returns phrase feature (dictionary) for translation step

Definition at line 67 of file DecodeStep.cpp.

References m_decodeFeature.

Referenced by Moses::TranslationOptionCollection::CreateTranslationOptionsForRange(), Moses::DecodeStepTranslation::Process(), Moses::DecodeStepTranslation::ProcessInitialTranslation(), Moses::DecodeStepTranslation::ProcessInitialTransLEGACY(), and Moses::DecodeStepTranslation::ProcessLEGACY().

Here is the caller graph for this function:

bool Moses::DecodeStep::IsFactorProducingStep (  )  const [inline]

returns true if this decode step produces one or more new factors

Definition at line 77 of file DecodeStep.h.

References m_newOutputFactors.

bool Moses::DecodeStep::IsFilteringStep (  )  const [inline]

returns true if this decode step must match some pre-existing factors

Definition at line 72 of file DecodeStep.h.

References m_conflictFactors.

Referenced by Moses::DecodeStepTranslation::Process(), Moses::DecodeStepGeneration::Process(), and Moses::DecodeStepTranslation::ProcessLEGACY().

Here is the caller graph for this function:

void Moses::DecodeStep::RemoveFeature ( const FeatureFunction ff  ) 

Definition at line 78 of file DecodeStep.cpp.

References m_featuresToApply.

Referenced by Moses::DecodeStepTranslation::DecodeStepTranslation().

Here is the caller graph for this function:

void Moses::DecodeStep::SetContainer ( const DecodeGraph container  )  [inline]

Definition at line 108 of file DecodeStep.h.

References m_container.

Referenced by Moses::DecodeGraph::Add().

Here is the caller graph for this function:


Member Data Documentation

mask of what factors exist on the output side after this decode step

Definition at line 53 of file DecodeStep.h.

Referenced by DecodeStep(), GetConflictFactors(), IsFilteringStep(), Moses::DecodeStepTranslation::Process(), Moses::DecodeStepGeneration::Process(), and Moses::DecodeStepTranslation::ProcessLEGACY().

Definition at line 56 of file DecodeStep.h.

Referenced by GetContainer(), and SetContainer().

list of the factors that are new in this step, may be empty

Definition at line 55 of file DecodeStep.h.

Referenced by GetGenerationDictionaryFeature(), and GetPhraseDictionaryFeature().

Definition at line 58 of file DecodeStep.h.

Referenced by DecodeStep(), and GetFeaturesRemaining().

Definition at line 52 of file DecodeStep.h.

Referenced by DecodeStep(), and GetOutputFactorMask().


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

Generated on Thu Jul 6 00:32:58 2017 for Moses by  doxygen 1.5.9