#include <PhraseDictionary.h>


Public Member Functions | |
| PhraseDictionaryFeature (PhraseTableImplementation implementation, size_t numScoreComponent, unsigned numInputScores, const std::vector< FactorType > &input, const std::vector< FactorType > &output, const std::string &filePath, const std::vector< float > &weight, size_t tableLimit, const std::string &targetFile, const std::string &alignmentsFile) | |
| virtual | ~PhraseDictionaryFeature () |
| virtual bool | ComputeValueInTranslationOption () const |
| std::string | GetScoreProducerDescription (unsigned) const |
| returns a string description of this producer | |
| std::string | GetScoreProducerWeightShortName (unsigned idx=0) const |
| returns the weight parameter name of this producer (used in n-best list) | |
| size_t | GetNumScoreComponents () const |
| size_t | GetNumInputScores () const |
| returns the number of scores gathered from the input (0 by default) | |
| void | InitDictionary (const TranslationSystem *system) |
| void | InitDictionary (const TranslationSystem *system, const InputType &source) |
| const PhraseDictionary * | GetDictionary () const |
Definition at line 93 of file PhraseDictionary.h.
| Moses::PhraseDictionaryFeature::PhraseDictionaryFeature | ( | PhraseTableImplementation | implementation, | |
| size_t | numScoreComponent, | |||
| unsigned | numInputScores, | |||
| const std::vector< FactorType > & | input, | |||
| const std::vector< FactorType > & | output, | |||
| const std::string & | filePath, | |||
| const std::vector< float > & | weight, | |||
| size_t | tableLimit, | |||
| const std::string & | targetFile, | |||
| const std::string & | alignmentsFile | |||
| ) |
Definition at line 49 of file PhraseDictionary.cpp.
References Moses::StaticData::GetScoreIndexManager(), Moses::StaticData::Instance(), Moses::Memory, Moses::SCFG, and Moses::SuffixArray.

| Moses::PhraseDictionaryFeature::~PhraseDictionaryFeature | ( | ) | [virtual] |
Definition at line 242 of file PhraseDictionary.cpp.
| bool Moses::PhraseDictionaryFeature::ComputeValueInTranslationOption | ( | ) | const [virtual] |
Reimplemented from Moses::StatelessFeatureFunction.
Definition at line 274 of file PhraseDictionary.cpp.
| const PhraseDictionary * Moses::PhraseDictionaryFeature::GetDictionary | ( | ) | const |
Definition at line 228 of file PhraseDictionary.cpp.
References CHECK.
Referenced by Moses::ChartManager::ChartManager(), Moses::TranslationSystem::CleanUpAfterSentenceProcessing(), Moses::DecodeStepTranslation::Process(), and Moses::DecodeStepTranslation::ProcessInitialTranslation().

| size_t Moses::PhraseDictionaryFeature::GetNumInputScores | ( | ) | const [virtual] |
returns the number of scores gathered from the input (0 by default)
Reimplemented from Moses::ScoreProducer.
Definition at line 269 of file PhraseDictionary.cpp.
Referenced by GetScoreProducerDescription(), and GetScoreProducerWeightShortName().

| size_t Moses::PhraseDictionaryFeature::GetNumScoreComponents | ( | ) | const [virtual] |
returns the number of scores that a subclass produces. For example, a language model conventionally produces 1, a translation table some arbitrary number, etc
Implements Moses::ScoreProducer.
Definition at line 264 of file PhraseDictionary.cpp.
Referenced by Moses::RuleTableLoaderStandard::Load().

| std::string Moses::PhraseDictionaryFeature::GetScoreProducerDescription | ( | unsigned | idx | ) | const [virtual] |
returns a string description of this producer
Implements Moses::ScoreProducer.
Definition at line 246 of file PhraseDictionary.cpp.
References GetNumInputScores().

| std::string Moses::PhraseDictionaryFeature::GetScoreProducerWeightShortName | ( | unsigned | idx = 0 |
) | const [virtual] |
returns the weight parameter name of this producer (used in n-best list)
Implements Moses::ScoreProducer.
Definition at line 255 of file PhraseDictionary.cpp.
References GetNumInputScores().

| void Moses::PhraseDictionaryFeature::InitDictionary | ( | const TranslationSystem * | system, | |
| const InputType & | source | |||
| ) |
Definition at line 211 of file PhraseDictionary.cpp.
References CHECK, and Moses::PhraseDictionary::InitializeForInput().

| void Moses::PhraseDictionaryFeature::InitDictionary | ( | const TranslationSystem * | system | ) |
Definition at line 197 of file PhraseDictionary.cpp.
References IFVERBOSE, and Moses::PrintUserTime().

1.5.9