Moses::LexicalReorderingConfiguration Class Reference

Factory class for lexical reordering states. More...

#include <LexicalReorderingState.h>

Collaboration diagram for Moses::LexicalReorderingConfiguration:

Collaboration graph
[legend]

List of all members.

Public Types

enum  ModelType {
  Monotonic, MSD, MSLR, LeftRight,
  None
}
enum  Direction { Forward, Backward, Bidirectional }
enum  Condition { F, E, FE }

Public Member Functions

 LexicalReorderingConfiguration (ScoreProducer *scoreProducer, const std::string &modelType)
LexicalReorderingStateCreateLexicalReorderingState (const InputType &input) const
size_t GetNumScoreComponents () const
size_t GetNumberOfTypes () const
ScoreProducerGetScoreProducer () const
ModelType GetModelType () const
Direction GetDirection () const
Condition GetCondition () const
bool IsPhraseBased () const
bool CollapseScores () const


Detailed Description

Factory class for lexical reordering states.

Definition at line 21 of file LexicalReorderingState.h.


Member Enumeration Documentation

Enumerator:
F 
E 
FE 

Definition at line 26 of file LexicalReorderingState.h.

Enumerator:
Forward 
Backward 
Bidirectional 

Definition at line 25 of file LexicalReorderingState.h.

Enumerator:
Monotonic 
MSD 
MSLR 
LeftRight 
None 

Definition at line 24 of file LexicalReorderingState.h.


Constructor & Destructor Documentation

Moses::LexicalReorderingConfiguration::LexicalReorderingConfiguration ( ScoreProducer scoreProducer,
const std::string &  modelType 
)

Definition at line 42 of file LexicalReorderingState.cpp.

References Moses::UserMessage::Add(), Backward, Bidirectional, F, FE, Forward, LeftRight, Monotonic, MSD, MSLR, and None.

Here is the call graph for this function:


Member Function Documentation

bool Moses::LexicalReorderingConfiguration::CollapseScores (  )  const [inline]

Definition at line 55 of file LexicalReorderingState.h.

Referenced by Moses::LexicalReorderingState::ClearScores(), and Moses::LexicalReorderingState::CopyScores().

Here is the caller graph for this function:

LexicalReorderingState * Moses::LexicalReorderingConfiguration::CreateLexicalReorderingState ( const InputType input  )  const

Definition at line 91 of file LexicalReorderingState.cpp.

References Backward, Bidirectional, Forward, GetNumberOfTypes(), Moses::InputType::GetSize(), and NULL.

Referenced by Moses::LexicalReordering::EmptyHypothesisState().

Here is the call graph for this function:

Here is the caller graph for this function:

Condition Moses::LexicalReorderingConfiguration::GetCondition (  )  const [inline]

Definition at line 47 of file LexicalReorderingState.h.

Referenced by Moses::LexicalReordering::LexicalReordering().

Here is the caller graph for this function:

Direction Moses::LexicalReorderingConfiguration::GetDirection (  )  const [inline]

Definition at line 43 of file LexicalReorderingState.h.

ModelType Moses::LexicalReorderingConfiguration::GetModelType (  )  const [inline]

size_t Moses::LexicalReorderingConfiguration::GetNumberOfTypes (  )  const

size_t Moses::LexicalReorderingConfiguration::GetNumScoreComponents (  )  const

Definition at line 32 of file LexicalReorderingState.cpp.

References Bidirectional, and GetNumberOfTypes().

Referenced by Moses::LexicalReordering::GetNumScoreComponents(), and Moses::LexicalReordering::LexicalReordering().

Here is the call graph for this function:

Here is the caller graph for this function:

ScoreProducer* Moses::LexicalReorderingConfiguration::GetScoreProducer (  )  const [inline]

Definition at line 35 of file LexicalReorderingState.h.

Referenced by Moses::LexicalReorderingState::CopyScores().

Here is the caller graph for this function:

bool Moses::LexicalReorderingConfiguration::IsPhraseBased (  )  const [inline]

Definition at line 51 of file LexicalReorderingState.h.


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

Generated on Thu Feb 9 00:04:11 2012 for Moses by  doxygen 1.5.9