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 (ttasksptr const &ttask)
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 127 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 213 of file LexicalReorderingTable.cpp.

Moses::LexicalReorderingTableTree::~LexicalReorderingTableTree (  ) 

Definition at line 226 of file LexicalReorderingTable.cpp.


Member Function Documentation

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

Definition at line 170 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 167 of file LexicalReorderingTable.h.

Referenced by InitializeForInput().

Here is the caller graph for this function:

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

Definition at line 164 of file LexicalReorderingTable.h.

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

void Moses::LexicalReorderingTableTree::InitializeForInput ( ttasksptr const &  ttask  )  [virtual]

Reimplemented from Moses::LexicalReorderingTable.

Definition at line 294 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 184 of file LexicalReorderingTable.h.

References ClearCache().

Here is the call graph for this function:

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

Definition at line 161 of file LexicalReorderingTable.h.


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