#include <PhraseBasedReorderingState.h>


Public Member Functions | |
| PhraseBasedReorderingState (const LRModel &config, LRModel::Direction dir, size_t offset) | |
| PhraseBasedReorderingState (const PhraseBasedReorderingState *prev, const TranslationOption &topt) | |
| virtual size_t | hash () const |
| virtual bool | operator== (const FFState &other) const |
| virtual LRState * | Expand (const TranslationOption &topt, const InputType &input, ScoreComponentCollection *scores) const |
Static Public Attributes | |
| static bool | m_useFirstBackwardScore = true |
Definition at line 9 of file PhraseBasedReorderingState.h.
| Moses::PhraseBasedReorderingState::PhraseBasedReorderingState | ( | const LRModel & | config, | |
| LRModel::Direction | dir, | |||
| size_t | offset | |||
| ) |
Definition at line 20 of file PhraseBasedReorderingState.cpp.
Referenced by Expand().

| Moses::PhraseBasedReorderingState::PhraseBasedReorderingState | ( | const PhraseBasedReorderingState * | prev, | |
| const TranslationOption & | topt | |||
| ) |
Definition at line 11 of file PhraseBasedReorderingState.cpp.
| LRState * Moses::PhraseBasedReorderingState::Expand | ( | const TranslationOption & | topt, | |
| const InputType & | input, | |||
| ScoreComponentCollection * | scores | |||
| ) | const [virtual] |
Implements Moses::LRState.
Definition at line 56 of file PhraseBasedReorderingState.cpp.
References Moses::LRState::CopyScores(), Moses::LRModel::Forward, Moses::LRModel::GetOrientation(), Moses::TranslationOption::GetSourceWordsRange(), Moses::LRState::m_configuration, Moses::LRState::m_direction, m_useFirstBackwardScore, and PhraseBasedReorderingState().

| size_t Moses::PhraseBasedReorderingState::hash | ( | ) | const [virtual] |
Implements Moses::FFState.
Definition at line 28 of file PhraseBasedReorderingState.cpp.
References Moses::hash_value(), and Moses::LRState::m_direction.

| bool Moses::PhraseBasedReorderingState::operator== | ( | const FFState & | other | ) | const [virtual] |
Implements Moses::FFState.
Definition at line 37 of file PhraseBasedReorderingState.cpp.
References Moses::LRState::ComparePrevScores(), Moses::LRModel::Forward, Moses::LRState::m_direction, and Moses::LRState::m_prevOption.

bool Moses::PhraseBasedReorderingState::m_useFirstBackwardScore = true [static] |
1.5.9