Moses::LexicalReorderingConfiguration Class Reference

#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 (const std::string &modelType)
LexicalReorderingStateCreateLexicalReorderingState (const InputType &input) const
size_t GetNumScoreComponents () const
void SetAdditionalScoreComponents (size_t number)
size_t GetNumberOfTypes () const
LexicalReorderingGetScoreProducer () const
ModelType GetModelType () const
Direction GetDirection () const
Condition GetCondition () const
bool IsPhraseBased () const
bool CollapseScores () const

Friends

class LexicalReordering


Detailed Description

Factory class for lexical reordering states
Todo:
There's a lot of classes for lexicalized reordering. Perhaps put them in a separate dir

Definition at line 24 of file LexicalReorderingState.h.


Member Enumeration Documentation

Enumerator:
F 
E 
FE 

Definition at line 30 of file LexicalReorderingState.h.

Enumerator:
Forward 
Backward 
Bidirectional 

Definition at line 29 of file LexicalReorderingState.h.

Enumerator:
Monotonic 
MSD 
MSLR 
LeftRight 
None 

Definition at line 28 of file LexicalReorderingState.h.


Constructor & Destructor Documentation

Moses::LexicalReorderingConfiguration::LexicalReorderingConfiguration ( const std::string &  modelType  ) 

Definition at line 47 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 61 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 96 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 53 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 49 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().

Here is the call graph for this function:

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

Definition at line 40 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 57 of file LexicalReorderingState.h.

void Moses::LexicalReorderingConfiguration::SetAdditionalScoreComponents ( size_t  number  ) 

Definition at line 42 of file LexicalReorderingState.cpp.


Friends And Related Function Documentation

friend class LexicalReordering [friend]

Definition at line 27 of file LexicalReorderingState.h.


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

Generated on Thu Jun 4 00:32:15 2015 for Moses by  doxygen 1.5.9