Moses::PhraseBasedReorderingState Class Reference

#include <LexicalReorderingState.h>

Inheritance diagram for Moses::PhraseBasedReorderingState:

Inheritance graph
[legend]
Collaboration diagram for Moses::PhraseBasedReorderingState:

Collaboration graph
[legend]

List of all members.

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 LexicalReorderingStateExpand (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


Detailed Description

State for the standard Moses implementation of lexical reordering models (see Koehn et al, Edinburgh System Description for the 2005 NIST MT Evaluation)

Definition at line 148 of file LexicalReorderingState.h.


Constructor & Destructor Documentation

Moses::PhraseBasedReorderingState::PhraseBasedReorderingState ( const LexicalReorderingConfiguration config,
LexicalReorderingConfiguration::Direction  dir,
size_t  offset 
)

Definition at line 182 of file LexicalReorderingState.cpp.

Referenced by Expand().

Here is the caller graph for this function:

Moses::PhraseBasedReorderingState::PhraseBasedReorderingState ( const PhraseBasedReorderingState prev,
const TranslationOption topt 
)

Definition at line 178 of file LexicalReorderingState.cpp.


Member Function Documentation

int Moses::PhraseBasedReorderingState::Compare ( const FFState o  )  const [virtual]

LexicalReorderingState * Moses::PhraseBasedReorderingState::Expand ( const TranslationOption topt,
Scores scores 
) const [virtual]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 154 of file LexicalReorderingState.h.

Referenced by Expand().


The documentation for this class was generated from the following files:

Generated on Thu Oct 30 00:31:24 2014 for Moses by  doxygen 1.5.9