#include <LexicalReorderingTable.h>


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) |
Definition at line 95 of file LexicalReorderingTable.h.
| 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.
| void Moses::LexicalReorderingTableTree::ClearCache | ( | ) | [inline] |
Definition at line 114 of file LexicalReorderingTable.h.
Referenced by InitializeForInput(), and InitializeForInputPhrase().

| bool Moses::LexicalReorderingTableTree::Create | ( | std::istream & | inFile, | |
| const std::string & | outFileName | |||
| ) | [static] |
Definition at line 327 of file LexicalReorderingTable.cpp.
References CHECK, Moses::PrefixTreeF< T, D >::create(), Moses::fClose(), Moses::FloorScore(), Moses::fOpen(), Moses::fTell(), Moses::fWriteVector(), InvalidLabelId, line, Moses::PrefixTreeMap::MagicWord, Moses::TokenizeMultiCharSeparator(), TRACE_ERR, Moses::TransformScore(), LVoc< A, B >::Write(), and Moses::Candidates::writeBin().

| void Moses::LexicalReorderingTableTree::DisableCache | ( | ) | [inline] |
Definition at line 111 of file LexicalReorderingTable.h.
Referenced by InitializeForInput().

| 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] |
Implements Moses::LexicalReorderingTable.
Definition at line 236 of file LexicalReorderingTable.cpp.
References CHECK, Moses::Phrase::GetSize(), Moses::LexicalReorderingTable::m_FactorsC, Moses::LexicalReorderingTable::m_FactorsE, and Moses::LexicalReorderingTable::m_FactorsF.

| void Moses::LexicalReorderingTableTree::InitializeForInput | ( | const InputType & | input | ) | [virtual] |
Reimplemented from Moses::LexicalReorderingTable.
Definition at line 311 of file LexicalReorderingTable.cpp.
References ClearCache(), and DisableCache().

| virtual void Moses::LexicalReorderingTableTree::InitializeForInputPhrase | ( | const Phrase & | f | ) | [inline, virtual] |
Reimplemented from Moses::LexicalReorderingTable.
Definition at line 123 of file LexicalReorderingTable.h.
References ClearCache().

| bool Moses::LexicalReorderingTableTree::IsCacheEnabled | ( | ) | const [inline] |
Definition at line 105 of file LexicalReorderingTable.h.
1.5.9