#include <LexicalReorderingTableCompact.h>
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 LexicalReorderingTable * | CheckAndLoad (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 ¶m) |
Definition at line 39 of file LexicalReorderingTableCompact.h.
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().
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.
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().
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.
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().
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().