#include <DecodeStepTranslation.h>


Public Member Functions | |
| DecodeStepTranslation () | |
| DecodeStepTranslation (PhraseDictionary *phraseFeature, const DecodeStep *prev, const std::vector< FeatureFunction * > &features) | |
| not implemented | |
| virtual void | Process (const TranslationOption &inputPartialTranslOpt, const DecodeStep &decodeStep, PartialTranslOptColl &outputPartialTranslOptColl, TranslationOptionCollection *toc, bool adhereTableLimit, TargetPhraseCollection::shared_ptr phraseColl) const |
| void | ProcessInitialTranslation (const InputType &source, PartialTranslOptColl &outputPartialTranslOptColl, size_t startPos, size_t endPos, bool adhereTableLimit, const InputPath &inputPath, TargetPhraseCollection::shared_ptr phraseColl) const |
| void | ProcessInitialTransLEGACY (InputType const &source, PartialTranslOptColl &outputPartialTranslOptColl, size_t startPos, size_t endPos, bool adhereTableLimit, InputPathList const &inputPathList) const |
| void | ProcessLEGACY (const TranslationOption &inputPartialTranslOpt, const DecodeStep &decodeStep, PartialTranslOptColl &outputPartialTranslOptColl, TranslationOptionCollection *toc, bool adhereTableLimit) const |
Definition at line 37 of file DecodeStepTranslation.h.
| Moses::DecodeStepTranslation::DecodeStepTranslation | ( | ) |
| Moses::DecodeStepTranslation::DecodeStepTranslation | ( | PhraseDictionary * | phraseFeature, | |
| const DecodeStep * | prev, | |||
| const std::vector< FeatureFunction * > & | features | |||
| ) |
not implemented
Definition at line 33 of file DecodeStepTranslation.cpp.
References Moses::PhraseDictionary::GetFeaturesToApply(), and Moses::DecodeStep::RemoveFeature().

| void Moses::DecodeStepTranslation::Process | ( | const TranslationOption & | inputPartialTranslOpt, | |
| const DecodeStep & | decodeStep, | |||
| PartialTranslOptColl & | outputPartialTranslOptColl, | |||
| TranslationOptionCollection * | toc, | |||
| bool | adhereTableLimit, | |||
| TargetPhraseCollection::shared_ptr | phraseColl | |||
| ) | const [virtual] |
Definition at line 47 of file DecodeStepTranslation.cpp.
References Moses::PartialTranslOptColl::Add(), Moses::TargetPhrase::EvaluateInIsolation(), Moses::TranslationOption::GetInputPath(), Moses::Range::GetNumWordsCovered(), Moses::InputPath::GetPhrase(), Moses::DecodeStep::GetPhraseDictionaryFeature(), Moses::Phrase::GetSize(), Moses::TranslationOption::GetSourceWordsRange(), Moses::PhraseDictionary::GetTableLimit(), Moses::TranslationOption::GetTargetPhrase(), Moses::TranslationOption::IsCompatible(), Moses::DecodeStep::IsFilteringStep(), Moses::DecodeStep::m_conflictFactors, Moses::DecodeStep::m_featuresToApply, Moses::DecodeStep::m_newOutputFactors, Moses::TargetPhrase::Merge(), NULL, and Moses::TranslationOption::SetInputPath().

| void Moses::DecodeStepTranslation::ProcessInitialTranslation | ( | const InputType & | source, | |
| PartialTranslOptColl & | outputPartialTranslOptColl, | |||
| size_t | startPos, | |||
| size_t | endPos, | |||
| bool | adhereTableLimit, | |||
| const InputPath & | inputPath, | |||
| TargetPhraseCollection::shared_ptr | phraseColl | |||
| ) | const |
initialize list of partial translation options by applying the first translation step Ideally, this function should be in DecodeStepTranslation class
Definition at line 105 of file DecodeStepTranslation.cpp.
References Moses::PartialTranslOptColl::Add(), Moses::DecodeStep::GetPhraseDictionaryFeature(), Moses::InputType::GetSubString(), Moses::PhraseDictionary::GetTableLimit(), Moses::InputType::GetType(), IFVERBOSE, NULL, range, Moses::SentenceInput, Moses::TranslationOption::SetInputPath(), TRACE_ERR, and VERBOSE.

| void Moses::DecodeStepTranslation::ProcessInitialTransLEGACY | ( | InputType const & | source, | |
| PartialTranslOptColl & | outputPartialTranslOptColl, | |||
| size_t | startPos, | |||
| size_t | endPos, | |||
| bool | adhereTableLimit, | |||
| InputPathList const & | inputPathList | |||
| ) | const |
Definition at line 145 of file DecodeStepTranslation.cpp.
References Moses::PartialTranslOptColl::Add(), Moses::DecodeStep::GetPhraseDictionaryFeature(), Moses::InputType::GetSubString(), Moses::PhraseDictionary::GetTableLimit(), Moses::PhraseDictionary::GetTargetPhraseCollectionLEGACY(), Moses::InputType::GetType(), IFVERBOSE, NULL, range, Moses::SentenceInput, Moses::TranslationOption::SetInputPath(), TRACE_ERR, and VERBOSE.
Referenced by Moses::TranslationOptionCollectionConfusionNet::CreateTranslationOptionsForRangeLEGACY().


| void Moses::DecodeStepTranslation::ProcessLEGACY | ( | const TranslationOption & | inputPartialTranslOpt, | |
| const DecodeStep & | decodeStep, | |||
| PartialTranslOptColl & | outputPartialTranslOptColl, | |||
| TranslationOptionCollection * | toc, | |||
| bool | adhereTableLimit | |||
| ) | const |
Definition at line 227 of file DecodeStepTranslation.cpp.
References Moses::PartialTranslOptColl::Add(), Moses::TargetPhrase::EvaluateInIsolation(), Moses::TranslationOption::GetInputPath(), Moses::InputPath::GetPhrase(), Moses::DecodeStep::GetPhraseDictionaryFeature(), Moses::Phrase::GetSize(), Moses::TranslationOptionCollection::GetSource(), Moses::TranslationOption::GetSourceWordsRange(), Moses::PhraseDictionary::GetTableLimit(), Moses::TranslationOption::GetTargetPhrase(), Moses::PhraseDictionary::GetTargetPhraseCollectionLEGACY(), Moses::TranslationOption::IsCompatible(), Moses::DecodeStep::IsFilteringStep(), Moses::DecodeStep::m_conflictFactors, Moses::DecodeStep::m_featuresToApply, Moses::DecodeStep::m_newOutputFactors, Moses::TargetPhrase::Merge(), NULL, and Moses::TranslationOption::SetInputPath().
Referenced by Moses::TranslationOptionCollectionConfusionNet::CreateTranslationOptionsForRangeLEGACY().


1.5.9