Moses::PhraseBasedReorderingState Class Reference

#include <PhraseBasedReorderingState.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 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 9 of file PhraseBasedReorderingState.h.


Constructor & Destructor Documentation

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

Definition at line 20 of file PhraseBasedReorderingState.cpp.

Referenced by Expand().

Here is the caller graph for this function:

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

Definition at line 11 of file PhraseBasedReorderingState.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 28 of file PhraseBasedReorderingState.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 37 of file PhraseBasedReorderingState.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 16 of file PhraseBasedReorderingState.h.

Referenced by Expand().


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

Generated on Fri May 27 00:31:56 2016 for Moses by  doxygen 1.5.9