#include <LexicalReorderingState.h>


Public Member Functions | |
| PhraseBasedReorderingState (const LexicalReorderingConfiguration &config, LexicalReorderingConfiguration::Direction dir, size_t offset) | |
| PhraseBasedReorderingState (const PhraseBasedReorderingState *prev, const TranslationOption &topt) | |
| virtual int | Compare (const FFState &o) const |
| virtual LexicalReorderingState * | Expand (const TranslationOption &topt, Scores &scores) const |
| ReorderingType | GetOrientationTypeMSD (WordsRange currRange) const |
| ReorderingType | GetOrientationTypeMSLR (WordsRange currRange) const |
| ReorderingType | GetOrientationTypeMonotonic (WordsRange currRange) const |
| ReorderingType | GetOrientationTypeLeftRight (WordsRange currRange) const |
Static Public Attributes | |
| static bool | m_useFirstBackwardScore = true |
Definition at line 148 of file LexicalReorderingState.h.
| Moses::PhraseBasedReorderingState::PhraseBasedReorderingState | ( | const LexicalReorderingConfiguration & | config, | |
| LexicalReorderingConfiguration::Direction | dir, | |||
| size_t | offset | |||
| ) |
Definition at line 182 of file LexicalReorderingState.cpp.
Referenced by Expand().

| Moses::PhraseBasedReorderingState::PhraseBasedReorderingState | ( | const PhraseBasedReorderingState * | prev, | |
| const TranslationOption & | topt | |||
| ) |
Definition at line 178 of file LexicalReorderingState.cpp.
| int Moses::PhraseBasedReorderingState::Compare | ( | const FFState & | o | ) | const [virtual] |
Implements Moses::LexicalReorderingState.
Definition at line 187 of file LexicalReorderingState.cpp.
References CHECK, Moses::LexicalReorderingState::ComparePrevScores(), Moses::LexicalReorderingConfiguration::Forward, Moses::LexicalReorderingState::m_direction, Moses::LexicalReorderingState::m_prevScore, and NULL.

| LexicalReorderingState * Moses::PhraseBasedReorderingState::Expand | ( | const TranslationOption & | topt, | |
| Scores & | scores | |||
| ) | const [virtual] |
Implements Moses::LexicalReorderingState.
Definition at line 206 of file LexicalReorderingState.cpp.
References Moses::LexicalReorderingState::ClearScores(), Moses::LexicalReorderingState::CopyScores(), Moses::LexicalReorderingConfiguration::Forward, Moses::LexicalReorderingConfiguration::GetModelType(), GetOrientationTypeLeftRight(), GetOrientationTypeMonotonic(), GetOrientationTypeMSD(), GetOrientationTypeMSLR(), Moses::TranslationOption::GetSourceWordsRange(), Moses::LexicalReorderingState::m_configuration, Moses::LexicalReorderingState::m_direction, m_useFirstBackwardScore, Moses::LexicalReorderingConfiguration::Monotonic, Moses::LexicalReorderingConfiguration::MSD, Moses::LexicalReorderingConfiguration::MSLR, and PhraseBasedReorderingState().

| LexicalReorderingState::ReorderingType Moses::PhraseBasedReorderingState::GetOrientationTypeLeftRight | ( | WordsRange | currRange | ) | const |
Definition at line 278 of file LexicalReorderingState.cpp.
References Moses::WordsRange::GetEndPos(), Moses::WordsRange::GetStartPos(), Moses::LexicalReorderingState::L, and Moses::LexicalReorderingState::R.
Referenced by Expand().


| LexicalReorderingState::ReorderingType Moses::PhraseBasedReorderingState::GetOrientationTypeMonotonic | ( | WordsRange | currRange | ) | const |
Definition at line 269 of file LexicalReorderingState.cpp.
References Moses::WordsRange::GetEndPos(), Moses::WordsRange::GetStartPos(), Moses::LexicalReorderingState::M, and Moses::LexicalReorderingState::NM.
Referenced by Expand().


| LexicalReorderingState::ReorderingType Moses::PhraseBasedReorderingState::GetOrientationTypeMSD | ( | WordsRange | currRange | ) | const |
Definition at line 232 of file LexicalReorderingState.cpp.
References Moses::LexicalReorderingState::D, Moses::WordsRange::GetEndPos(), Moses::WordsRange::GetStartPos(), Moses::LexicalReorderingState::M, and Moses::LexicalReorderingState::S.
Referenced by Expand().


| LexicalReorderingState::ReorderingType Moses::PhraseBasedReorderingState::GetOrientationTypeMSLR | ( | WordsRange | currRange | ) | const |
Definition at line 249 of file LexicalReorderingState.cpp.
References Moses::LexicalReorderingState::DL, Moses::LexicalReorderingState::DR, Moses::WordsRange::GetEndPos(), Moses::WordsRange::GetStartPos(), Moses::LexicalReorderingState::M, and Moses::LexicalReorderingState::S.
Referenced by Expand().


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