Moses::PhraseBasedReorderingState Class Reference

#include <PhraseBasedReorderingState.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

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]

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 Thu Jul 6 00:33:06 2017 for Moses by  doxygen 1.5.9