Moses::ChartRuleLookupManager Class Reference

#include <ChartRuleLookupManager.h>

Inheritance diagram for Moses::ChartRuleLookupManager:

Inheritance graph
Collaboration diagram for Moses::ChartRuleLookupManager:

Collaboration graph

List of all members.

Public Member Functions

 ChartRuleLookupManager (const ChartParser &parser, const ChartCellCollectionBase &cellColl)
virtual ~ChartRuleLookupManager ()
const ChartCellLabelSetGetTargetLabelSet (size_t begin, size_t end) const
const ChartParserGetParser () const
const ChartCellLabelGetSourceAt (size_t at) const
virtual void GetChartRuleCollection (const InputPath &inputPath, size_t lastPos, ChartParserCallback &outColl)=0

Detailed Description

Defines an interface for looking up rules in a rule table. Concrete implementation classes should correspond to specific PhraseDictionary subclasses (memory or on-disk). Since a ChartRuleLookupManager object maintains sentence-specific state, exactly one should be created for each sentence that is to be decoded.

Definition at line 40 of file ChartRuleLookupManager.h.

Constructor & Destructor Documentation

Moses::ChartRuleLookupManager::ChartRuleLookupManager ( const ChartParser parser,
const ChartCellCollectionBase cellColl 
) [inline]

Definition at line 43 of file ChartRuleLookupManager.h.

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

Definition at line 6 of file ChartRuleLookupManager.cpp.

Member Function Documentation

virtual void Moses::ChartRuleLookupManager::GetChartRuleCollection ( const InputPath inputPath,
size_t  lastPos,
ChartParserCallback outColl 
) [pure virtual]

abstract function. Return a vector of translation options for given a range in the input sentence

range source range for which you want the translation options
outColl return argument

Implemented in Moses::ChartRuleLookupManagerExample, Moses::ChartRuleLookupManagerMemory, Moses::ChartRuleLookupManagerMemoryPerSentence, Moses::ChartRuleLookupManagerOnDisk, and Moses::Scope3Parser.

const ChartParser& Moses::ChartRuleLookupManager::GetParser (  )  const [inline]

const ChartCellLabel& Moses::ChartRuleLookupManager::GetSourceAt ( size_t  at  )  const [inline]

Definition at line 59 of file ChartRuleLookupManager.h.

References Moses::ChartCellCollectionBase::GetSourceWordLabel().

Referenced by Moses::ChartRuleLookupManagerOnDisk::GetChartRuleCollection(), and Moses::ChartRuleLookupManagerExample::GetChartRuleCollection().

Here is the call graph for this function:

Here is the caller graph for this function:

const ChartCellLabelSet& Moses::ChartRuleLookupManager::GetTargetLabelSet ( size_t  begin,
size_t  end 
) const [inline]

Definition at line 50 of file ChartRuleLookupManager.h.

References Moses::ChartCellCollectionBase::GetBase(), and Moses::ChartCellBase::GetTargetLabelSet().

Referenced by Moses::StackLatticeBuilder::Build(), and Moses::ChartRuleLookupManagerOnDisk::GetChartRuleCollection().

Here is the call graph for this function:

Here is the caller graph for this function:

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

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