#include <PhraseDictionaryMemory.h>


Public Member Functions | |
| PhraseDictionaryMemory (size_t numScoreComponent, PhraseDictionaryFeature *feature) | |
| virtual | ~PhraseDictionaryMemory () |
| bool | Load (const std::vector< FactorType > &input, const std::vector< FactorType > &output, const std::string &filePath, const std::vector< float > &weight, size_t tableLimit, const LMList &languageModels, float weightWP) |
| const TargetPhraseCollection * | GetTargetPhraseCollection (const Phrase &source) const |
| find list of translations that can translates src. Only for phrase input | |
| virtual void | InitializeForInput (InputType const &) |
| Create entry for translation of source to targetPhrase. | |
| virtual ChartRuleLookupManager * | CreateRuleLookupManager (const InputType &, const ChartCellCollection &) |
| Create a sentence-specific manager for SCFG rule lookup. | |
| TO_STRING () | |
Protected Member Functions | |
| TargetPhraseCollection * | CreateTargetPhraseCollection (const Phrase &source) |
Protected Attributes | |
| PhraseDictionaryNode | m_collection |
Friends | |
| std::ostream & | operator<< (std::ostream &, const PhraseDictionaryMemory &) |
Definition at line 35 of file PhraseDictionaryMemory.h.
| Moses::PhraseDictionaryMemory::PhraseDictionaryMemory | ( | size_t | numScoreComponent, | |
| PhraseDictionaryFeature * | feature | |||
| ) | [inline] |
Definition at line 46 of file PhraseDictionaryMemory.h.
| Moses::PhraseDictionaryMemory::~PhraseDictionaryMemory | ( | ) | [virtual] |
Definition at line 198 of file PhraseDictionaryMemory.cpp.
| virtual ChartRuleLookupManager* Moses::PhraseDictionaryMemory::CreateRuleLookupManager | ( | const InputType & | , | |
| const ChartCellCollection & | ||||
| ) | [inline, virtual] |
Create a sentence-specific manager for SCFG rule lookup.
Implements Moses::PhraseDictionary.
Definition at line 65 of file PhraseDictionaryMemory.h.
References CHECK.
| TargetPhraseCollection * Moses::PhraseDictionaryMemory::CreateTargetPhraseCollection | ( | const Phrase & | source | ) | [protected] |
Definition at line 167 of file PhraseDictionaryMemory.cpp.
References Moses::PhraseDictionaryNode::CreateTargetPhraseCollection(), Moses::PhraseDictionaryNode::GetOrCreateChild(), Moses::Phrase::GetSize(), Moses::Phrase::GetWord(), m_collection, and NULL.

| const TargetPhraseCollection * Moses::PhraseDictionaryMemory::GetTargetPhraseCollection | ( | const Phrase & | src | ) | const [virtual] |
find list of translations that can translates src. Only for phrase input
Implements Moses::PhraseDictionary.
Definition at line 182 of file PhraseDictionaryMemory.cpp.
References Moses::PhraseDictionaryNode::GetChild(), Moses::Phrase::GetSize(), Moses::PhraseDictionaryNode::GetTargetPhraseCollection(), Moses::Phrase::GetWord(), m_collection, and NULL.

| virtual void Moses::PhraseDictionaryMemory::InitializeForInput | ( | InputType const & | source | ) | [inline, virtual] |
Create entry for translation of source to targetPhrase.
Implements Moses::PhraseDictionary.
Definition at line 61 of file PhraseDictionaryMemory.h.
| bool Moses::PhraseDictionaryMemory::Load | ( | const std::vector< FactorType > & | input, | |
| const std::vector< FactorType > & | output, | |||
| const std::string & | filePath, | |||
| const std::vector< float > & | weight, | |||
| size_t | tableLimit, | |||
| const LMList & | languageModels, | |||
| float | weightWP | |||
| ) |
| Moses::PhraseDictionaryMemory::TO_STRING | ( | ) |
| std::ostream& operator<< | ( | std::ostream & | , | |
| const PhraseDictionaryMemory & | ||||
| ) | [friend] |
Definition at line 41 of file PhraseDictionaryMemory.h.
Referenced by CreateTargetPhraseCollection(), GetTargetPhraseCollection(), and Moses::operator<<().
1.5.9