Moses::LexicalReorderingTableCompact Class Reference

#include <LexicalReorderingTableCompact.h>

Inheritance diagram for Moses::LexicalReorderingTableCompact:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LexicalReorderingTableCompact (const std::string &filePath, const std::vector< FactorType > &f_factors, const std::vector< FactorType > &e_factors, const std::vector< FactorType > &c_factors)
 LexicalReorderingTableCompact (const std::vector< FactorType > &f_factors, const std::vector< FactorType > &e_factors, const std::vector< FactorType > &c_factors)
virtual ~LexicalReorderingTableCompact ()
virtual std::vector< float > GetScore (const Phrase &f, const Phrase &e, const Phrase &c)
void Load (std::string filePath)

Static Public Member Functions

static LexicalReorderingTableCheckAndLoad (const std::string &filePath, const std::vector< FactorType > &f_factors, const std::vector< FactorType > &e_factors, const std::vector< FactorType > &c_factors)
static void SetStaticDefaultParameters (Parameter const &param)


Detailed Description

Definition at line 39 of file LexicalReorderingTableCompact.h.


Constructor & Destructor Documentation

Moses::LexicalReorderingTableCompact::LexicalReorderingTableCompact ( 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 31 of file LexicalReorderingTableCompact.cpp.

References Load().

Here is the call graph for this function:

Moses::LexicalReorderingTableCompact::LexicalReorderingTableCompact ( const std::vector< FactorType > &  f_factors,
const std::vector< FactorType > &  e_factors,
const std::vector< FactorType > &  c_factors 
)

Definition at line 46 of file LexicalReorderingTableCompact.cpp.

Moses::LexicalReorderingTableCompact::~LexicalReorderingTableCompact (  )  [virtual]

Definition at line 58 of file LexicalReorderingTableCompact.cpp.


Member Function Documentation

LexicalReorderingTable * Moses::LexicalReorderingTableCompact::CheckAndLoad ( const std::string &  filePath,
const std::vector< FactorType > &  f_factors,
const std::vector< FactorType > &  e_factors,
const std::vector< FactorType > &  c_factors 
) [static]

Definition at line 131 of file LexicalReorderingTableCompact.cpp.

References Moses::FileExists(), and VERBOSE.

Referenced by Moses::LexicalReorderingTable::LoadAvailable().

Here is the call graph for this function:

Here is the caller graph for this function:

std::vector< float > Moses::LexicalReorderingTableCompact::GetScore ( const Phrase f,
const Phrase e,
const Phrase c 
) [virtual]

Implements Moses::LexicalReorderingTable.

Definition at line 66 of file LexicalReorderingTableCompact.cpp.

References Moses::BlockHashIndex::GetSize(), Moses::Phrase::GetSize(), Moses::Phrase::GetSubString(), index, and key.

Here is the call graph for this function:

void Moses::LexicalReorderingTableCompact::Load ( std::string  filePath  ) 

Definition at line 157 of file LexicalReorderingTableCompact.cpp.

References Moses::StringVector< ValueT, PosT, Allocator >::load(), Moses::BlockHashIndex::Load(), NULL, read(), and UTIL_THROW_IF2.

Referenced by LexicalReorderingTableCompact().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::LexicalReorderingTableCompact::SetStaticDefaultParameters ( Parameter const &  param  )  [static]

Definition at line 189 of file LexicalReorderingTableCompact.cpp.

References Moses::Parameter::SetParameter().

Referenced by Moses::StaticData::LoadData().

Here is the call graph for this function:

Here is the caller graph for this function:


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

Generated on Thu Jul 6 00:33:37 2017 for Moses by  doxygen 1.5.9