#include <PhraseDictionaryNodeMemory.h>
Definition at line 95 of file PhraseDictionaryNodeMemory.h.
typedef std::map<NonTerminalMapKey, PhraseDictionaryNodeMemory> Moses::PhraseDictionaryNodeMemory::NonTerminalMap |
Definition at line 122 of file PhraseDictionaryNodeMemory.h.
typedef std::pair<Word, Word> Moses::PhraseDictionaryNodeMemory::NonTerminalMapKey |
Definition at line 98 of file PhraseDictionaryNodeMemory.h.
typedef std::map<Word, PhraseDictionaryNodeMemory> Moses::PhraseDictionaryNodeMemory::TerminalMap |
Definition at line 118 of file PhraseDictionaryNodeMemory.h.
Moses::PhraseDictionaryNodeMemory::PhraseDictionaryNodeMemory | ( | ) | [inline] |
Definition at line 137 of file PhraseDictionaryNodeMemory.h.
const PhraseDictionaryNodeMemory * Moses::PhraseDictionaryNodeMemory::GetChild | ( | const Word & | sourceNonTerm, | |
const Word & | targetNonTerm | |||
) | const |
Definition at line 105 of file PhraseDictionaryNodeMemory.cpp.
References Moses::Word::IsNonTerminal(), key, NULL, and UTIL_THROW_IF2.
const PhraseDictionaryNodeMemory * Moses::PhraseDictionaryNodeMemory::GetChild | ( | const Word & | sourceTerm | ) | const |
Definition at line 86 of file PhraseDictionaryNodeMemory.cpp.
References Moses::Word::IsNonTerminal(), NULL, and UTIL_THROW_IF2.
Referenced by Moses::PhraseDictionaryMemory::GetTargetPhraseCollectionBatch(), and Moses::PhraseDictionaryMemory::GetTargetPhraseCollectionLEGACY().
const NonTerminalMap& Moses::PhraseDictionaryNodeMemory::GetNonTerminalMap | ( | ) | const [inline] |
Definition at line 169 of file PhraseDictionaryNodeMemory.h.
Referenced by Moses::DottedRuleColl::Add().
PhraseDictionaryNodeMemory * Moses::PhraseDictionaryNodeMemory::GetOrCreateChild | ( | const Word & | sourceNonTerm, | |
const Word & | targetNonTerm | |||
) |
Definition at line 74 of file PhraseDictionaryNodeMemory.cpp.
References Moses::Word::IsNonTerminal(), key, and UTIL_THROW_IF2.
PhraseDictionaryNodeMemory * Moses::PhraseDictionaryNodeMemory::GetOrCreateChild | ( | const Word & | sourceTerm | ) |
Definition at line 60 of file PhraseDictionaryNodeMemory.cpp.
Referenced by Moses::PhraseDictionaryFuzzyMatch::GetOrCreateNode(), and Moses::PhraseDictionaryMemory::GetOrCreateNode().
TargetPhraseCollection::shared_ptr Moses::PhraseDictionaryNodeMemory::GetTargetPhraseCollection | ( | ) | [inline] |
Definition at line 161 of file PhraseDictionaryNodeMemory.h.
TargetPhraseCollection::shared_ptr Moses::PhraseDictionaryNodeMemory::GetTargetPhraseCollection | ( | ) | const [inline] |
Definition at line 157 of file PhraseDictionaryNodeMemory.h.
Referenced by Moses::PhraseDictionaryFuzzyMatch::GetOrCreateTargetPhraseCollection(), Moses::PhraseDictionaryMemory::GetOrCreateTargetPhraseCollection(), Moses::PhraseDictionaryMemory::GetTargetPhraseCollectionBatch(), Moses::PhraseDictionaryMemory::GetTargetPhraseCollectionLEGACY(), and Moses::operator<<().
const TerminalMap& Moses::PhraseDictionaryNodeMemory::GetTerminalMap | ( | ) | const [inline] |
Definition at line 165 of file PhraseDictionaryNodeMemory.h.
bool Moses::PhraseDictionaryNodeMemory::IsLeaf | ( | ) | const [inline] |
Definition at line 140 of file PhraseDictionaryNodeMemory.h.
Referenced by Moses::DottedRuleColl::Add().
void Moses::PhraseDictionaryNodeMemory::Prune | ( | size_t | tableLimit | ) |
Definition at line 31 of file PhraseDictionaryNodeMemory.cpp.
void Moses::PhraseDictionaryNodeMemory::Remove | ( | ) |
Definition at line 118 of file PhraseDictionaryNodeMemory.cpp.
Referenced by Moses::PhraseDictionaryALSuffixArray::CleanUpAfterSentenceProcessing().
void Moses::PhraseDictionaryNodeMemory::Sort | ( | size_t | tableLimit | ) |
Definition at line 45 of file PhraseDictionaryNodeMemory.cpp.
Referenced by Moses::PhraseDictionaryFuzzyMatch::SortAndPrune(), and Moses::PhraseDictionaryMemory::SortAndPrune().
Moses::PhraseDictionaryNodeMemory::TO_STRING | ( | ) |
std::ostream& operator<< | ( | std::ostream & | , | |
const PhraseDictionaryFuzzyMatch & | ||||
) | [friend] |
std::ostream& operator<< | ( | std::ostream & | , | |
const PhraseDictionaryScope3 & | ||||
) | [friend] |
std::ostream& operator<< | ( | std::ostream & | , | |
const PhraseDictionaryMemory & | ||||
) | [friend] |