lm::base::ModelFacade< Child, StateT, VocabularyT > Class Template Reference

#include <facade.hh>

Inheritance diagram for lm::base::ModelFacade< Child, StateT, VocabularyT >:

Inheritance graph
[legend]
Collaboration diagram for lm::base::ModelFacade< Child, StateT, VocabularyT >:

Collaboration graph
[legend]

List of all members.

Public Types

typedef StateT State
typedef VocabularyT Vocabulary

Public Member Functions

FullScoreReturn BaseFullScore (const void *in_state, const WordIndex new_word, void *out_state) const
FullScoreReturn BaseFullScoreForgotState (const WordIndex *context_rbegin, const WordIndex *context_rend, const WordIndex new_word, void *out_state) const
float Score (const State &in_state, const WordIndex new_word, State &out_state) const
float BaseScore (const void *in_state, const WordIndex new_word, void *out_state) const
const StateBeginSentenceState () const
const StateNullContextState () const
const VocabularyGetVocabulary () const

Protected Member Functions

 ModelFacade ()
virtual ~ModelFacade ()
void Init (const State &begin_sentence, const State &null_context, const Vocabulary &vocab, unsigned char order)


Detailed Description

template<class Child, class StateT, class VocabularyT>
class lm::base::ModelFacade< Child, StateT, VocabularyT >

Definition at line 14 of file facade.hh.


Member Typedef Documentation

template<class Child, class StateT, class VocabularyT>
typedef StateT lm::base::ModelFacade< Child, StateT, VocabularyT >::State

Definition at line 16 of file facade.hh.

template<class Child, class StateT, class VocabularyT>
typedef VocabularyT lm::base::ModelFacade< Child, StateT, VocabularyT >::Vocabulary

Definition at line 17 of file facade.hh.


Constructor & Destructor Documentation

template<class Child, class StateT, class VocabularyT>
lm::base::ModelFacade< Child, StateT, VocabularyT >::ModelFacade (  )  [inline, protected]

Definition at line 52 of file facade.hh.

template<class Child, class StateT, class VocabularyT>
virtual lm::base::ModelFacade< Child, StateT, VocabularyT >::~ModelFacade (  )  [inline, protected, virtual]

Definition at line 54 of file facade.hh.


Member Function Documentation

template<class Child, class StateT, class VocabularyT>
FullScoreReturn lm::base::ModelFacade< Child, StateT, VocabularyT >::BaseFullScore ( const void *  in_state,
const WordIndex  new_word,
void *  out_state 
) const [inline, virtual]

Implements lm::base::Model.

Definition at line 20 of file facade.hh.

template<class Child, class StateT, class VocabularyT>
FullScoreReturn lm::base::ModelFacade< Child, StateT, VocabularyT >::BaseFullScoreForgotState ( const WordIndex context_rbegin,
const WordIndex context_rend,
const WordIndex  new_word,
void *  out_state 
) const [inline, virtual]

Implements lm::base::Model.

Definition at line 27 of file facade.hh.

template<class Child, class StateT, class VocabularyT>
float lm::base::ModelFacade< Child, StateT, VocabularyT >::BaseScore ( const void *  in_state,
const WordIndex  new_word,
void *  out_state 
) const [inline, virtual]

Implements lm::base::Model.

Definition at line 40 of file facade.hh.

template<class Child, class StateT, class VocabularyT>
const State& lm::base::ModelFacade< Child, StateT, VocabularyT >::BeginSentenceState (  )  const [inline]

Definition at line 47 of file facade.hh.

template<class Child, class StateT, class VocabularyT>
const Vocabulary& lm::base::ModelFacade< Child, StateT, VocabularyT >::GetVocabulary (  )  const [inline]

Definition at line 49 of file facade.hh.

template<class Child, class StateT, class VocabularyT>
void lm::base::ModelFacade< Child, StateT, VocabularyT >::Init ( const State begin_sentence,
const State null_context,
const Vocabulary vocab,
unsigned char  order 
) [inline, protected]

Definition at line 57 of file facade.hh.

template<class Child, class StateT, class VocabularyT>
const State& lm::base::ModelFacade< Child, StateT, VocabularyT >::NullContextState (  )  const [inline]

Definition at line 48 of file facade.hh.

template<class Child, class StateT, class VocabularyT>
float lm::base::ModelFacade< Child, StateT, VocabularyT >::Score ( const State in_state,
const WordIndex  new_word,
State out_state 
) const [inline]

Definition at line 36 of file facade.hh.

Referenced by lm::base::ModelFacade< Model, State, Vocabulary >::BaseScore().

Here is the caller graph for this function:


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

Generated on Thu Jul 6 00:32:42 2017 for Moses by  doxygen 1.5.9