#include <PhraseDictionaryTreeAdaptor.h>


Public Member Functions | |
| PhraseDictionaryTreeAdaptor (size_t numScoreComponent, unsigned numInputScores, const PhraseDictionaryFeature *feature) | |
| virtual | ~PhraseDictionaryTreeAdaptor () |
| void | EnableCache () |
| void | DisableCache () |
| 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) |
| TargetPhraseCollection const * | GetTargetPhraseCollection (Phrase const &src) const |
| find list of translations that can translates src. Only for phrase input | |
| TargetPhraseCollection const * | GetTargetPhraseCollection (InputType const &src, WordsRange const &srcRange) const |
| find list of translations that can translates a portion of src. Used by confusion network decoding | |
| void | SetWeightTransModel (const std::vector< float > &weightT) |
| void | AddEquivPhrase (const Phrase &source, const TargetPhrase &targetPhrase) |
| Create entry for translation of source to targetPhrase. | |
| std::string | GetScoreProducerDescription () const |
| std::string | GetScoreProducerWeightShortName () const |
| size_t | GetNumInputScores () const |
| virtual void | InitializeForInput (InputType const &source) |
| const ChartRuleCollection * | GetChartRuleCollection (InputType const &, WordsRange const &, bool, const CellCollection &) const |
Friends | |
| class | PDTAimp |
| Moses::PhraseDictionaryTreeAdaptor::PhraseDictionaryTreeAdaptor | ( | size_t | numScoreComponent, | |
| unsigned | numInputScores, | |||
| const PhraseDictionaryFeature * | feature | |||
| ) |
| Moses::PhraseDictionaryTreeAdaptor::~PhraseDictionaryTreeAdaptor | ( | ) | [virtual] |
| void Moses::PhraseDictionaryTreeAdaptor::AddEquivPhrase | ( | const Phrase & | source, | |
| const TargetPhrase & | targetPhrase | |||
| ) | [virtual] |
Create entry for translation of source to targetPhrase.
Implements Moses::PhraseDictionary.
References Moses::PDTAimp::AddEquivPhrase().

| void Moses::PhraseDictionaryTreeAdaptor::DisableCache | ( | ) |
References Moses::PDTAimp::useCache.
| void Moses::PhraseDictionaryTreeAdaptor::EnableCache | ( | ) |
References Moses::PDTAimp::useCache.
| const ChartRuleCollection* Moses::PhraseDictionaryTreeAdaptor::GetChartRuleCollection | ( | InputType const & | , | |
| WordsRange const & | , | |||
| bool | , | |||
| const CellCollection & | ||||
| ) | const [inline, virtual] |
| size_t Moses::PhraseDictionaryTreeAdaptor::GetNumInputScores | ( | ) | const |
| std::string Moses::PhraseDictionaryTreeAdaptor::GetScoreProducerDescription | ( | ) | const |
| std::string Moses::PhraseDictionaryTreeAdaptor::GetScoreProducerWeightShortName | ( | ) | const [inline] |
| TargetPhraseCollection const * Moses::PhraseDictionaryTreeAdaptor::GetTargetPhraseCollection | ( | InputType const & | src, | |
| WordsRange const & | range | |||
| ) | const [virtual] |
find list of translations that can translates a portion of src. Used by confusion network decoding
Reimplemented from Moses::PhraseDictionary.
References Moses::WordsRange::GetEndPos(), Moses::WordsRange::GetStartPos(), Moses::InputType::GetSubString(), Moses::PDTAimp::GetTargetPhraseCollection(), and Moses::PDTAimp::m_rangeCache.

| TargetPhraseCollection const * Moses::PhraseDictionaryTreeAdaptor::GetTargetPhraseCollection | ( | Phrase const & | src | ) | const [virtual] |
find list of translations that can translates src. Only for phrase input
Implements Moses::PhraseDictionary.
References Moses::PDTAimp::GetTargetPhraseCollection().

| void Moses::PhraseDictionaryTreeAdaptor::InitializeForInput | ( | InputType const & | source | ) | [virtual] |
Implements Moses::PhraseDictionary.
References Moses::PDTAimp::CacheSource(), and Moses::PDTAimp::CleanUp().

| bool Moses::PhraseDictionaryTreeAdaptor::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 | |||
| ) |
References Moses::UserMessage::Add(), Moses::PDTAimp::Create(), Moses::Dictionary::m_numScoreComponent, and Moses::PhraseDictionary::m_tableLimit.

| void Moses::PhraseDictionaryTreeAdaptor::SetWeightTransModel | ( | const std::vector< float > & | weightT | ) | [virtual] |
set/change translation weights and recalc weighted score for each translation. TODO This may be redundant now we use ScoreCollection
Implements Moses::PhraseDictionary.
References Moses::Dictionary::CleanUp(), and Moses::PDTAimp::m_weights.

friend class PDTAimp [friend] |
1.5.9