#include <PhraseDictionaryOnDisk.h>


Public Member Functions | |
| PhraseDictionaryOnDisk (size_t numScoreComponent, PhraseDictionaryFeature *feature) | |
| virtual | ~PhraseDictionaryOnDisk () |
| PhraseTableImplementation | GetPhraseTableImplementation () const |
| 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, const WordPenaltyProducer *wpProducer) |
| std::string | GetScoreProducerDescription (unsigned) const |
| virtual const TargetPhraseCollection * | GetTargetPhraseCollection (const Phrase &src) const |
| find list of translations that can translates src. Only for phrase input | |
| void | InitializeForInput (const InputType &input) |
| Create entry for translation of source to targetPhrase. | |
| void | CleanUp () |
| virtual ChartRuleLookupManager * | CreateRuleLookupManager (const InputType &, const ChartCellCollection &) |
| Create a sentence-specific manager for SCFG rule lookup. | |
Protected Member Functions | |
| void | LoadTargetLookup () |
Protected Attributes | |
| OnDiskPt::OnDiskWrapper | m_dbWrapper |
| const LMList * | m_languageModels |
| const WordPenaltyProducer * | m_wpProducer |
| std::vector< FactorType > | m_inputFactorsVec |
| std::vector< FactorType > | m_outputFactorsVec |
| std::vector< float > | m_weight |
| std::string | m_filePath |
Friends | |
| std::ostream & | operator<< (std::ostream &, const PhraseDictionaryOnDisk &) |
Definition at line 38 of file PhraseDictionaryOnDisk.h.
| Moses::PhraseDictionaryOnDisk::PhraseDictionaryOnDisk | ( | size_t | numScoreComponent, | |
| PhraseDictionaryFeature * | feature | |||
| ) | [inline] |
Definition at line 54 of file PhraseDictionaryOnDisk.h.
| Moses::PhraseDictionaryOnDisk::~PhraseDictionaryOnDisk | ( | ) | [virtual] |
Definition at line 33 of file PhraseDictionaryOnDisk.cpp.
References CleanUp().

| void Moses::PhraseDictionaryOnDisk::CleanUp | ( | ) | [virtual] |
Reimplemented from Moses::Dictionary.
Definition at line 80 of file PhraseDictionaryOnDisk.cpp.
Referenced by ~PhraseDictionaryOnDisk().

| ChartRuleLookupManager * Moses::PhraseDictionaryOnDisk::CreateRuleLookupManager | ( | const InputType & | , | |
| const ChartCellCollection & | ||||
| ) | [virtual] |
Create a sentence-specific manager for SCFG rule lookup.
Implements Moses::PhraseDictionary.
Definition at line 90 of file PhraseDictionaryOnDisk.cpp.
References m_dbWrapper, m_filePath, m_inputFactorsVec, m_languageModels, m_outputFactorsVec, m_weight, and m_wpProducer.
| PhraseTableImplementation Moses::PhraseDictionaryOnDisk::GetPhraseTableImplementation | ( | ) | const [inline] |
| std::string Moses::PhraseDictionaryOnDisk::GetScoreProducerDescription | ( | unsigned | ) | const [inline] |
Definition at line 71 of file PhraseDictionaryOnDisk.h.
| const TargetPhraseCollection * Moses::PhraseDictionaryOnDisk::GetTargetPhraseCollection | ( | const Phrase & | src | ) | const [virtual] |
find list of translations that can translates src. Only for phrase input
Implements Moses::PhraseDictionary.
Definition at line 69 of file PhraseDictionaryOnDisk.cpp.
| void Moses::PhraseDictionaryOnDisk::InitializeForInput | ( | const InputType & | source | ) | [virtual] |
Create entry for translation of source to targetPhrase.
Implements Moses::PhraseDictionary.
Definition at line 75 of file PhraseDictionaryOnDisk.cpp.
| bool Moses::PhraseDictionaryOnDisk::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, | |||
| const WordPenaltyProducer * | wpProducer | |||
| ) |
Definition at line 38 of file PhraseDictionaryOnDisk.cpp.
References CHECK, LoadTargetLookup(), m_dbWrapper, m_filePath, m_inputFactorsVec, m_languageModels, m_outputFactorsVec, Moses::PhraseDictionary::m_tableLimit, m_weight, and m_wpProducer.

| void Moses::PhraseDictionaryOnDisk::LoadTargetLookup | ( | ) | [protected] |
Definition at line 85 of file PhraseDictionaryOnDisk.cpp.
Referenced by Load().

| std::ostream& operator<< | ( | std::ostream & | , | |
| const PhraseDictionaryOnDisk & | ||||
| ) | [friend] |
OnDiskPt::OnDiskWrapper Moses::PhraseDictionaryOnDisk::m_dbWrapper [protected] |
Definition at line 44 of file PhraseDictionaryOnDisk.h.
Referenced by CreateRuleLookupManager(), and Load().
std::string Moses::PhraseDictionaryOnDisk::m_filePath [protected] |
Definition at line 49 of file PhraseDictionaryOnDisk.h.
Referenced by CreateRuleLookupManager(), and Load().
std::vector<FactorType> Moses::PhraseDictionaryOnDisk::m_inputFactorsVec [protected] |
Definition at line 47 of file PhraseDictionaryOnDisk.h.
Referenced by CreateRuleLookupManager(), and Load().
const LMList* Moses::PhraseDictionaryOnDisk::m_languageModels [protected] |
Definition at line 45 of file PhraseDictionaryOnDisk.h.
Referenced by CreateRuleLookupManager(), and Load().
std::vector<FactorType> Moses::PhraseDictionaryOnDisk::m_outputFactorsVec [protected] |
Definition at line 47 of file PhraseDictionaryOnDisk.h.
Referenced by CreateRuleLookupManager(), and Load().
std::vector<float> Moses::PhraseDictionaryOnDisk::m_weight [protected] |
Definition at line 48 of file PhraseDictionaryOnDisk.h.
Referenced by CreateRuleLookupManager(), and Load().
const WordPenaltyProducer* Moses::PhraseDictionaryOnDisk::m_wpProducer [protected] |
Definition at line 46 of file PhraseDictionaryOnDisk.h.
Referenced by CreateRuleLookupManager(), and Load().
1.5.9