Moses::PhraseDictionary Class Reference

#include <PhraseDictionary.h>

Inheritance diagram for Moses::PhraseDictionary:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PhraseDictionary (size_t numScoreComponent, const PhraseDictionaryFeature *feature)
size_t GetTableLimit () const
 table limit number.
DecodeType GetDecodeType () const
 returns whether this dictionary is to be used for Translate or Generate
const PhraseDictionaryFeatureGetFeature () const
virtual const
TargetPhraseCollection
GetTargetPhraseCollection (const Phrase &src) const =0
 find list of translations that can translates src. Only for phrase input
virtual const
TargetPhraseCollection
GetTargetPhraseCollection (InputType const &src, WordsRange const &range) const
 find list of translations that can translates a portion of src. Used by confusion network decoding
virtual void InitializeForInput (InputType const &source)=0
 Create entry for translation of source to targetPhrase.
virtual ChartRuleLookupManagerCreateRuleLookupManager (const InputType &, const ChartCellCollection &)=0
 Create a sentence-specific manager for SCFG rule lookup.

Protected Attributes

size_t m_tableLimit
const PhraseDictionaryFeaturem_feature


Detailed Description

Abstract base class for phrase dictionaries (tables).

Definition at line 58 of file PhraseDictionary.h.


Constructor & Destructor Documentation

Moses::PhraseDictionary::PhraseDictionary ( size_t  numScoreComponent,
const PhraseDictionaryFeature feature 
) [inline]

Definition at line 61 of file PhraseDictionary.h.


Member Function Documentation

virtual ChartRuleLookupManager* Moses::PhraseDictionary::CreateRuleLookupManager ( const InputType ,
const ChartCellCollection  
) [pure virtual]

Create a sentence-specific manager for SCFG rule lookup.

Implemented in Moses::PhraseDictionaryDynSuffixArray, Moses::PhraseDictionaryMemory, Moses::PhraseDictionaryTreeAdaptor, Moses::PhraseDictionaryOnDisk, Moses::PhraseDictionarySCFG, and Moses::RuleTableUTrie.

Referenced by Moses::ChartManager::ChartManager().

Here is the caller graph for this function:

DecodeType Moses::PhraseDictionary::GetDecodeType (  )  const [inline, virtual]

returns whether this dictionary is to be used for Translate or Generate

Implements Moses::Dictionary.

Definition at line 67 of file PhraseDictionary.h.

References Moses::Translate.

const PhraseDictionaryFeature * Moses::PhraseDictionary::GetFeature (  )  const

Definition at line 279 of file PhraseDictionary.cpp.

References m_feature.

Referenced by Moses::PDTAimp::CreateTargetPhrase(), and Moses::RuleTableLoaderStandard::Load().

Here is the caller graph for this function:

size_t Moses::PhraseDictionary::GetTableLimit (  )  const [inline]

const TargetPhraseCollection * Moses::PhraseDictionary::GetTargetPhraseCollection ( InputType const &  src,
WordsRange const &  range 
) const [virtual]

find list of translations that can translates a portion of src. Used by confusion network decoding

Reimplemented in Moses::PhraseDictionaryTreeAdaptor.

Definition at line 43 of file PhraseDictionary.cpp.

References Moses::InputType::GetSubString(), and GetTargetPhraseCollection().

Here is the call graph for this function:

virtual const TargetPhraseCollection* Moses::PhraseDictionary::GetTargetPhraseCollection ( const Phrase src  )  const [pure virtual]

virtual void Moses::PhraseDictionary::InitializeForInput ( InputType const &  source  )  [pure virtual]


Member Data Documentation


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

Generated on Wed Feb 8 23:04:10 2012 for Moses by  doxygen 1.5.9