Moses::LRState Class Reference

Abstract class for lexical reordering model states. More...

#include <LRState.h>

Inheritance diagram for Moses::LRState:

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

Collaboration graph
[legend]

List of all members.

Public Types

typedef LRModel::ReorderingType ReorderingType

Public Member Functions

virtual LRStateExpand (const TranslationOption &hypo, const InputType &input, ScoreComponentCollection *scores) const =0

Static Public Member Functions

static LRStateCreateLRState (const std::vector< std::string > &config, LRModel::Direction dir, const InputType &input)

Protected Member Functions

 LRState (const LRState *prev, const TranslationOption &topt)
 LRState (const LRModel &config, LRModel::Direction dir, size_t offset)
void CopyScores (ScoreComponentCollection *scores, const TranslationOption &topt, const InputType &input, ReorderingType reoType) const
int ComparePrevScores (const TranslationOption *other) const

Protected Attributes

const LRModelm_configuration
LRModel::Direction m_direction
size_t m_offset
const TranslationOptionm_prevOption


Detailed Description

Abstract class for lexical reordering model states.

Definition at line 18 of file LRState.h.


Member Typedef Documentation

Definition at line 22 of file LRState.h.


Constructor & Destructor Documentation

Moses::LRState::LRState ( const LRState prev,
const TranslationOption topt 
) [inline, protected]

Definition at line 47 of file LRState.h.

Moses::LRState::LRState ( const LRModel config,
LRModel::Direction  dir,
size_t  offset 
) [inline, protected]

Definition at line 56 of file LRState.h.


Member Function Documentation

int Moses::LRState::ComparePrevScores ( const TranslationOption other  )  const [protected]

void Moses::LRState::CopyScores ( ScoreComponentCollection scores,
const TranslationOption topt,
const InputType input,
ReorderingType  reoType 
) const [protected]

static LRState* Moses::LRState::CreateLRState ( const std::vector< std::string > &  config,
LRModel::Direction  dir,
const InputType input 
) [static]

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


Member Data Documentation

size_t Moses::LRState::m_offset [protected]


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