Moses::NeuralLMWrapper Class Reference

#include <NeuralLMWrapper.h>

Inheritance diagram for Moses::NeuralLMWrapper:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 NeuralLMWrapper (const std::string &line)
 ~NeuralLMWrapper ()
virtual LMResult GetValue (const std::vector< const Word * > &contextFactor, State *finalState=0) const
virtual void Load (AllOptions::ptr const &opts)
 override to load model files

Protected Attributes

nplm::neuralLM * m_neuralLM_shared
boost::thread_specific_ptr
< nplm::neuralLM > 
m_neuralLM
int m_unk


Detailed Description

Definition at line 15 of file NeuralLMWrapper.h.


Constructor & Destructor Documentation

Moses::NeuralLMWrapper::NeuralLMWrapper ( const std::string &  line  ) 

Definition at line 12 of file NeuralLMWrapper.cpp.

References Moses::FeatureFunction::ReadParameters().

Here is the call graph for this function:

Moses::NeuralLMWrapper::~NeuralLMWrapper (  ) 

Definition at line 19 of file NeuralLMWrapper.cpp.

References m_neuralLM_shared.


Member Function Documentation

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

void Moses::NeuralLMWrapper::Load ( AllOptions::ptr const &  opts  )  [virtual]


Member Data Documentation

boost::thread_specific_ptr<nplm::neuralLM> Moses::NeuralLMWrapper::m_neuralLM [mutable, protected]

Definition at line 21 of file NeuralLMWrapper.h.

nplm::neuralLM* Moses::NeuralLMWrapper::m_neuralLM_shared [protected]

Definition at line 19 of file NeuralLMWrapper.h.

Referenced by Load(), and ~NeuralLMWrapper().

Definition at line 22 of file NeuralLMWrapper.h.

Referenced by Load().


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