Moses::LexicalReorderingTableTree Class Reference

#include <LexicalReorderingTable.h>

Inheritance diagram for Moses::LexicalReorderingTableTree:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LexicalReorderingTableTree (const std::string &filePath, const std::vector< FactorType > &f_factors, const std::vector< FactorType > &e_factors, const std::vector< FactorType > &c_factors)
 ~LexicalReorderingTableTree ()
bool IsCacheEnabled () const
void EnableCache ()
void DisableCache ()
void ClearCache ()
virtual std::vector< float > GetScore (const Phrase &f, const Phrase &e, const Phrase &c)
virtual void InitializeForInput (const InputType &input)
virtual void InitializeForInputPhrase (const Phrase &f)

Static Public Member Functions

static bool Create (std::istream &inFile, const std::string &outFileName)


Detailed Description

Definition at line 95 of file LexicalReorderingTable.h.


Constructor & Destructor Documentation

Moses::LexicalReorderingTableTree::LexicalReorderingTableTree ( const std::string &  filePath,
const std::vector< FactorType > &  f_factors,
const std::vector< FactorType > &  e_factors,
const std::vector< FactorType > &  c_factors 
)

Definition at line 221 of file LexicalReorderingTable.cpp.

Moses::LexicalReorderingTableTree::~LexicalReorderingTableTree (  ) 

Definition at line 232 of file LexicalReorderingTable.cpp.


Member Function Documentation

void Moses::LexicalReorderingTableTree::ClearCache (  )  [inline]

Definition at line 114 of file LexicalReorderingTable.h.

Referenced by InitializeForInput(), and InitializeForInputPhrase().

Here is the caller graph for this function:

bool Moses::LexicalReorderingTableTree::Create ( std::istream &  inFile,
const std::string &  outFileName 
) [static]

void Moses::LexicalReorderingTableTree::DisableCache (  )  [inline]

Definition at line 111 of file LexicalReorderingTable.h.

Referenced by InitializeForInput().

Here is the caller graph for this function:

void Moses::LexicalReorderingTableTree::EnableCache (  )  [inline]

Definition at line 108 of file LexicalReorderingTable.h.

Scores Moses::LexicalReorderingTableTree::GetScore ( const Phrase f,
const Phrase e,
const Phrase c 
) [virtual]

void Moses::LexicalReorderingTableTree::InitializeForInput ( const InputType input  )  [virtual]

Reimplemented from Moses::LexicalReorderingTable.

Definition at line 311 of file LexicalReorderingTable.cpp.

References ClearCache(), and DisableCache().

Here is the call graph for this function:

virtual void Moses::LexicalReorderingTableTree::InitializeForInputPhrase ( const Phrase f  )  [inline, virtual]

Reimplemented from Moses::LexicalReorderingTable.

Definition at line 123 of file LexicalReorderingTable.h.

References ClearCache().

Here is the call graph for this function:

bool Moses::LexicalReorderingTableTree::IsCacheEnabled (  )  const [inline]

Definition at line 105 of file LexicalReorderingTable.h.


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

Generated on Thu Aug 28 00:31:41 2014 for Moses by  doxygen 1.5.9