Moses::OxLM< Model > Class Template Reference

#include <OxLM.h>

Inheritance diagram for Moses::OxLM< Model >:

Inheritance graph
[legend]
Collaboration diagram for Moses::OxLM< Model >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 OxLM (const std::string &line)
 ~OxLM ()
void SetParameter (const std::string &key, const std::string &value)
void Load (AllOptions::ptr const &opts)
 override to load model files
virtual LMResult GetValue (const std::vector< const Word * > &contextFactor, State *finalState=0) const
virtual void InitializeForInput (ttasksptr const &ttask)
 Called before search and collecting of translation options.
virtual void CleanUpAfterSentenceProcessing (const InputType &source)

Protected Attributes

Model model
boost::shared_ptr< OxLMMappermapper
int kSTART
int kSTOP
int kUNKNOWN
bool normalized
bool posBackOff
FactorType posFactorType
bool persistentCache
boost::thread_specific_ptr
< oxlm::QueryCache > 
cache
int cacheHits
int totalHits


Detailed Description

template<class Model>
class Moses::OxLM< Model >

Definition at line 18 of file OxLM.h.


Constructor & Destructor Documentation

template<class Model >
Moses::OxLM< Model >::OxLM ( const std::string &  line  ) 

template<class Model >
Moses::OxLM< Model >::~OxLM (  )  [inline]


Member Function Documentation

template<class Model >
void Moses::OxLM< Model >::CleanUpAfterSentenceProcessing ( const InputType source  )  [inline, virtual]

template<class Model >
virtual LMResult Moses::OxLM< Model >::GetValue ( const std::vector< const Word * > &  contextFactor,
State finalState = 0 
) const [virtual]

template<class Model >
void Moses::OxLM< Model >::InitializeForInput ( ttasksptr const &  ttask  )  [inline, virtual]

Called before search and collecting of translation options.

Reimplemented from Moses::FeatureFunction.

Definition at line 180 of file OxLM.cpp.

References Moses::InputType::GetTranslationId(), Moses::LanguageModelImplementation::m_filePath, and Moses::OxLM< Model >::persistentCache.

Here is the call graph for this function:

template<class Model >
void Moses::OxLM< Model >::Load ( AllOptions::ptr const &  opts  )  [inline, virtual]

template<class Model >
void Moses::OxLM< Model >::SetParameter ( const std::string &  key,
const std::string &  value 
) [virtual]

Reimplemented from Moses::LanguageModelSingleFactor.


Member Data Documentation

template<class Model >
boost::thread_specific_ptr<oxlm::QueryCache> Moses::OxLM< Model >::cache [mutable, protected]

Definition at line 58 of file OxLM.h.

Referenced by Moses::OxLM< Model >::~OxLM().

template<class Model >
int Moses::OxLM< Model >::cacheHits [mutable, protected]

Definition at line 59 of file OxLM.h.

Referenced by Moses::OxLM< Model >::~OxLM().

template<class Model >
int Moses::OxLM< Model >::kSTART [protected]

Definition at line 48 of file OxLM.h.

Referenced by Moses::OxLM< Model >::Load().

template<class Model >
int Moses::OxLM< Model >::kSTOP [protected]

Definition at line 49 of file OxLM.h.

Referenced by Moses::OxLM< Model >::Load().

template<class Model >
int Moses::OxLM< Model >::kUNKNOWN [protected]

Definition at line 50 of file OxLM.h.

Referenced by Moses::OxLM< Model >::Load().

template<class Model >
boost::shared_ptr<OxLMMapper> Moses::OxLM< Model >::mapper [protected]

Definition at line 46 of file OxLM.h.

Referenced by Moses::OxLM< Model >::Load().

template<class Model >
Model Moses::OxLM< Model >::model [protected]

template<class Model >
bool Moses::OxLM< Model >::normalized [protected]

Definition at line 52 of file OxLM.h.

template<class Model >
bool Moses::OxLM< Model >::persistentCache [protected]

template<class Model >
bool Moses::OxLM< Model >::posBackOff [protected]

Definition at line 54 of file OxLM.h.

Referenced by Moses::OxLM< Model >::Load().

template<class Model >
FactorType Moses::OxLM< Model >::posFactorType [protected]

Definition at line 55 of file OxLM.h.

Referenced by Moses::OxLM< Model >::Load().

template<class Model >
int Moses::OxLM< Model >::totalHits [mutable, protected]

Definition at line 59 of file OxLM.h.

Referenced by Moses::OxLM< Model >::~OxLM().


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

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