#include <LRState.h>


Public Types | |
| typedef LRModel::ReorderingType | ReorderingType |
Public Member Functions | |
| virtual LRState * | Expand (const TranslationOption &hypo, const InputType &input, ScoreComponentCollection *scores) const =0 |
Static Public Member Functions | |
| static LRState * | CreateLRState (const std::vector< std::string > &config, LRModel::Direction dir, const InputType &input) |
Protected Member Functions | |
| LRState (const LRState *prev, const TranslationOption &topt) | |
| LRState (const LRModel &config, LRModel::Direction dir, size_t offset) | |
| void | CopyScores (ScoreComponentCollection *scores, const TranslationOption &topt, const InputType &input, ReorderingType reoType) const |
| int | ComparePrevScores (const TranslationOption *other) const |
Protected Attributes | |
| const LRModel & | m_configuration |
| LRModel::Direction | m_direction |
| size_t | m_offset |
| const TranslationOption * | m_prevOption |
Definition at line 18 of file LRState.h.
| Moses::LRState::LRState | ( | const LRState * | prev, | |
| const TranslationOption & | topt | |||
| ) | [inline, protected] |
| Moses::LRState::LRState | ( | const LRModel & | config, | |
| LRModel::Direction | dir, | |||
| size_t | offset | |||
| ) | [inline, protected] |
| int Moses::LRState::ComparePrevScores | ( | const TranslationOption * | other | ) | const [protected] |
Definition at line 67 of file LRState.cpp.
References Moses::TranslationOption::GetLexReorderingScores(), Moses::LRModel::GetNumberOfTypes(), Moses::LRModel::GetScoreProducer(), m_configuration, m_offset, m_prevOption, NULL, and stop.
Referenced by Moses::PhraseBasedReorderingState::operator==(), and Moses::HReorderingForwardState::operator==().


| void Moses::LRState::CopyScores | ( | ScoreComponentCollection * | scores, | |
| const TranslationOption & | topt, | |||
| const InputType & | input, | |||
| ReorderingType | reoType | |||
| ) | const [protected] |
Definition at line 19 of file LRState.cpp.
References Moses::LRModel::Backward, Moses::LRModel::CollapseScores(), Moses::SparseReordering::CopyScores(), Moses::LRModel::Forward, Moses::LexicalReordering::GetDefaultScore(), Moses::LexicalReordering::GetHaveDefaultScores(), Moses::TranslationOption::GetLexReorderingScores(), Moses::FeatureFunction::GetNumScoreComponents(), Moses::LRModel::GetScoreProducer(), Moses::LRModel::GetSparseReordering(), m_configuration, m_direction, m_offset, m_prevOption, Moses::ScoreComponentCollection::PlusEquals(), and UTIL_THROW_IF2.
Referenced by Moses::PhraseBasedReorderingState::Expand(), Moses::HReorderingForwardState::Expand(), and Moses::HReorderingBackwardState::Expand().


| static LRState* Moses::LRState::CreateLRState | ( | const std::vector< std::string > & | config, | |
| LRModel::Direction | dir, | |||
| const InputType & | input | |||
| ) | [static] |
| virtual LRState* Moses::LRState::Expand | ( | const TranslationOption & | hypo, | |
| const InputType & | input, | |||
| ScoreComponentCollection * | scores | |||
| ) | const [pure virtual] |
Implemented in Moses::BidirectionalReorderingState, Moses::HReorderingBackwardState, Moses::HReorderingForwardState, and Moses::PhraseBasedReorderingState.
Referenced by Moses::LexicalReordering::EvaluateWhenApplied(), and Moses::BidirectionalReorderingState::Expand().

const LRModel& Moses::LRState::m_configuration [protected] |
Definition at line 37 of file LRState.h.
Referenced by ComparePrevScores(), CopyScores(), Moses::PhraseBasedReorderingState::Expand(), Moses::HReorderingForwardState::Expand(), Moses::HReorderingBackwardState::Expand(), and Moses::BidirectionalReorderingState::Expand().
LRModel::Direction Moses::LRState::m_direction [protected] |
Definition at line 41 of file LRState.h.
Referenced by CopyScores(), Moses::PhraseBasedReorderingState::Expand(), Moses::PhraseBasedReorderingState::hash(), and Moses::PhraseBasedReorderingState::operator==().
size_t Moses::LRState::m_offset [protected] |
Definition at line 42 of file LRState.h.
Referenced by ComparePrevScores(), CopyScores(), and Moses::BidirectionalReorderingState::Expand().
const TranslationOption* Moses::LRState::m_prevOption [protected] |
Definition at line 44 of file LRState.h.
Referenced by ComparePrevScores(), CopyScores(), Moses::PhraseBasedReorderingState::operator==(), and Moses::HReorderingForwardState::operator==().
1.5.9