#include <PhraseDictionary.h>


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 PhraseDictionaryFeature * | GetFeature () 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 ChartRuleLookupManager * | CreateRuleLookupManager (const InputType &, const ChartCellCollection &)=0 |
| Create a sentence-specific manager for SCFG rule lookup. | |
Protected Attributes | |
| size_t | m_tableLimit |
| const PhraseDictionaryFeature * | m_feature |
Definition at line 58 of file PhraseDictionary.h.
| Moses::PhraseDictionary::PhraseDictionary | ( | size_t | numScoreComponent, | |
| const PhraseDictionaryFeature * | feature | |||
| ) | [inline] |
Definition at line 61 of file PhraseDictionary.h.
| 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().

| 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().

| size_t Moses::PhraseDictionary::GetTableLimit | ( | ) | const [inline] |
table limit number.
Definition at line 64 of file PhraseDictionary.h.
References m_tableLimit.
Referenced by Moses::ChartRuleLookupManagerOnDisk::GetChartRuleCollection(), Moses::DecodeStepTranslation::Process(), Moses::DecodeStepTranslation::ProcessInitialTranslation(), and Moses::PhraseDictionarySCFG::SortAndPrune().

| 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().

| virtual const TargetPhraseCollection* Moses::PhraseDictionary::GetTargetPhraseCollection | ( | const Phrase & | src | ) | const [pure virtual] |
find list of translations that can translates src. Only for phrase input
Implemented in Moses::PhraseDictionaryDynSuffixArray, Moses::PhraseDictionaryMemory, Moses::PhraseDictionaryTreeAdaptor, Moses::PhraseDictionaryOnDisk, and Moses::RuleTableTrie.
Referenced by GetTargetPhraseCollection(), Moses::DecodeStepTranslation::Process(), and Moses::DecodeStepTranslation::ProcessInitialTranslation().

| virtual void Moses::PhraseDictionary::InitializeForInput | ( | InputType const & | source | ) | [pure virtual] |
Create entry for translation of source to targetPhrase.
Implemented in Moses::PhraseDictionaryDynSuffixArray, Moses::PhraseDictionaryMemory, Moses::PhraseDictionaryTreeAdaptor, Moses::PhraseDictionaryALSuffixArray, Moses::PhraseDictionaryOnDisk, and Moses::RuleTableTrie.
Referenced by Moses::PhraseDictionaryFeature::InitDictionary().

const PhraseDictionaryFeature* Moses::PhraseDictionary::m_feature [protected] |
Definition at line 86 of file PhraseDictionary.h.
Referenced by GetFeature(), and Moses::PhraseDictionaryDynSuffixArray::GetTargetPhraseCollection().
size_t Moses::PhraseDictionary::m_tableLimit [protected] |
Definition at line 85 of file PhraseDictionary.h.
Referenced by GetTableLimit(), Moses::PhraseDictionaryALSuffixArray::InitializeForInput(), Moses::RuleTableTrie::Load(), Moses::PhraseDictionaryOnDisk::Load(), Moses::PhraseDictionaryALSuffixArray::Load(), Moses::PhraseDictionaryTreeAdaptor::Load(), and Moses::PDTAimp::PruneTargetCandidates().
1.5.9