Moses::PhraseBasedReorderingState Class Reference

#include <LexicalReorderingState.h>

Inheritance diagram for Moses::PhraseBasedReorderingState:

Inheritance graph
Collaboration diagram for Moses::PhraseBasedReorderingState:

Collaboration graph

List of all members.

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 LRStateExpand (const TranslationOption &topt, const InputType &input, ScoreComponentCollection *scores) const
ReorderingType GetOrientationTypeMSD (Range currRange) const
ReorderingType GetOrientationTypeMSLR (Range currRange) const
ReorderingType GetOrientationTypeMonotonic (Range currRange) const
ReorderingType GetOrientationTypeLeftRight (Range 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 232 of file LexicalReorderingState.h.

Constructor & Destructor Documentation

Moses::PhraseBasedReorderingState::PhraseBasedReorderingState ( const LRModel config,
LRModel::Direction  dir,
size_t  offset 

Definition at line 308 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 299 of file LexicalReorderingState.cpp.

Member Function Documentation

LRState * Moses::PhraseBasedReorderingState::Expand ( const TranslationOption topt,
const InputType input,
ScoreComponentCollection scores 
) const [virtual]

ReorderingType Moses::PhraseBasedReorderingState::GetOrientationTypeLeftRight ( Range  currRange  )  const

ReorderingType Moses::PhraseBasedReorderingState::GetOrientationTypeMonotonic ( Range  currRange  )  const

ReorderingType Moses::PhraseBasedReorderingState::GetOrientationTypeMSD ( Range  currRange  )  const

ReorderingType Moses::PhraseBasedReorderingState::GetOrientationTypeMSLR ( Range  currRange  )  const

size_t Moses::PhraseBasedReorderingState::hash (  )  const [virtual]

Implements Moses::FFState.

Definition at line 316 of file LexicalReorderingState.cpp.

References Moses::hash_value(), and Moses::LRState::m_direction.

Here is the call graph for this function:

bool Moses::PhraseBasedReorderingState::operator== ( const FFState other  )  const [virtual]

Implements Moses::FFState.

Definition at line 325 of file LexicalReorderingState.cpp.

References Moses::LRState::ComparePrevScores(), Moses::LRModel::Forward, Moses::LRState::m_direction, and Moses::LRState::m_prevOption.

Here is the call graph for this function:

Member Data Documentation

Definition at line 239 of file LexicalReorderingState.h.

Referenced by Expand().

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

Generated on Sat Nov 28 00:33:57 2015 for Moses by  doxygen 1.5.9