#include <PhraseDictionaryMemory.h>


Public Member Functions | |
| PhraseDictionaryMemory (const std::string &line) | |
| const PhraseDictionaryNodeMemory & | GetRootNode () const | 
| ChartRuleLookupManager * | CreateRuleLookupManager (const ChartParser &, const ChartCellCollectionBase &, std::size_t) | 
| Create a sentence-specific manager for SCFG rule lookup.   | |
| TargetPhraseCollection::shared_ptr | GetTargetPhraseCollectionLEGACY (const Phrase &src) const | 
| find list of translations that can translates src. Only for phrase input   | |
| void | GetTargetPhraseCollectionBatch (const InputPathList &inputPathQueue) const | 
| TO_STRING () | |
Protected Member Functions | |
| PhraseDictionaryMemory (int type, const std::string &line) | |
| TargetPhraseCollection::shared_ptr | GetOrCreateTargetPhraseCollection (const Phrase &source, const TargetPhrase &target, const Word *sourceLHS) | 
| PhraseDictionaryNodeMemory & | GetOrCreateNode (const Phrase &source, const TargetPhrase &target, const Word *sourceLHS) | 
| void | SortAndPrune () | 
Protected Attributes | |
| PhraseDictionaryNodeMemory | m_collection | 
Friends | |
| class | RuleTableLoader | 
| std::ostream & | operator<< (std::ostream &, const PhraseDictionaryMemory &) | 
Definition at line 35 of file PhraseDictionaryMemory.h.
| Moses::PhraseDictionaryMemory::PhraseDictionaryMemory | ( | int | type, | |
| const std::string & | line | |||
| ) |  [inline, protected] | 
        
Definition at line 41 of file PhraseDictionaryMemory.h.
| Moses::PhraseDictionaryMemory::PhraseDictionaryMemory | ( | const std::string & | line | ) | 
Definition at line 42 of file PhraseDictionaryMemory.cpp.
References Moses::PhraseDictionary::m_maxCacheSize, and Moses::FeatureFunction::ReadParameters().

| ChartRuleLookupManager * Moses::PhraseDictionaryMemory::CreateRuleLookupManager | ( | const ChartParser & | , | |
| const ChartCellCollectionBase & | , | |||
| std::size_t | ||||
| ) |  [virtual] | 
        
Create a sentence-specific manager for SCFG rule lookup.
Implements Moses::PhraseDictionary.
Definition at line 127 of file PhraseDictionaryMemory.cpp.
| PhraseDictionaryNodeMemory & Moses::PhraseDictionaryMemory::GetOrCreateNode | ( | const Phrase & | source, | |
| const TargetPhrase & | target, | |||
| const Word * | sourceLHS | |||
| ) |  [protected] | 
        
Definition at line 83 of file PhraseDictionaryMemory.cpp.
References Moses::AlignmentInfo::begin(), Moses::AlignmentInfo::end(), Moses::TargetPhrase::GetAlignNonTerm(), Moses::PhraseDictionaryNodeMemory::GetOrCreateChild(), Moses::Phrase::GetSize(), Moses::Phrase::GetWord(), Moses::Word::IsNonTerminal(), m_collection, NULL, and UTIL_THROW_IF2.
Referenced by GetOrCreateTargetPhraseCollection().


| TargetPhraseCollection::shared_ptr Moses::PhraseDictionaryMemory::GetOrCreateTargetPhraseCollection | ( | const Phrase & | source, | |
| const TargetPhrase & | target, | |||
| const Word * | sourceLHS | |||
| ) |  [protected, virtual] | 
        
Implements Moses::RuleTableTrie.
Definition at line 54 of file PhraseDictionaryMemory.cpp.
References GetOrCreateNode(), and Moses::PhraseDictionaryNodeMemory::GetTargetPhraseCollection().

| const PhraseDictionaryNodeMemory& Moses::PhraseDictionaryMemory::GetRootNode | ( | ) |  const [inline] | 
        
Definition at line 48 of file PhraseDictionaryMemory.h.
References m_collection.
Referenced by Moses::ChartRuleLookupManagerMemory::GetChartRuleCollection(), and GetTargetPhraseCollectionBatch().

| void Moses::PhraseDictionaryMemory::GetTargetPhraseCollectionBatch | ( | const InputPathList & | inputPathQueue | ) |  const [virtual] | 
        
Reimplemented from Moses::PhraseDictionary.
Definition at line 144 of file PhraseDictionaryMemory.cpp.
References Moses::PhraseDictionaryNodeMemory::GetChild(), Moses::InputPath::GetPhrase(), Moses::InputPath::GetPrevPath(), Moses::InputPath::GetPtNode(), GetRootNode(), Moses::Phrase::GetSize(), Moses::PhraseDictionaryNodeMemory::GetTargetPhraseCollection(), Moses::Phrase::GetWord(), Moses::DecodeFeature::m_inputFactors, NULL, Moses::Word::OnlyTheseFactors(), Moses::PhraseDictionary::SatisfyBackoff(), and Moses::InputPath::SetTargetPhrases().

| TargetPhraseCollection::shared_ptr Moses::PhraseDictionaryMemory::GetTargetPhraseCollectionLEGACY | ( | const Phrase & | src | ) |  const [virtual] | 
        
find list of translations that can translates src. Only for phrase input
Reimplemented from Moses::PhraseDictionary.
Definition at line 64 of file PhraseDictionaryMemory.cpp.
References Moses::PhraseDictionaryNodeMemory::GetChild(), Moses::Phrase::GetSize(), Moses::PhraseDictionaryNodeMemory::GetTargetPhraseCollection(), Moses::Phrase::GetWord(), m_collection, Moses::DecodeFeature::m_inputFactors, NULL, and Moses::Phrase::OnlyTheseFactors().

| void Moses::PhraseDictionaryMemory::SortAndPrune | ( | ) |  [protected, virtual] | 
        
Implements Moses::RuleTableTrie.
Definition at line 135 of file PhraseDictionaryMemory.cpp.
References Moses::PhraseDictionary::GetTableLimit(), m_collection, and Moses::PhraseDictionaryNodeMemory::Sort().

| Moses::PhraseDictionaryMemory::TO_STRING | ( | ) | 
| std::ostream& operator<< | ( | std::ostream & | , | |
| const PhraseDictionaryMemory & | ||||
| ) |  [friend] | 
        
friend class RuleTableLoader [friend]           | 
        
Definition at line 78 of file PhraseDictionaryMemory.h.
Referenced by Moses::PhraseDictionaryALSuffixArray::CleanUpAfterSentenceProcessing(), GetOrCreateNode(), GetRootNode(), GetTargetPhraseCollectionLEGACY(), Moses::operator<<(), and SortAndPrune().
 1.5.9