Cambridge SMT System
ucam::fsttools::ApplyBiLMTask< Data, Arc > Class Template Reference

#include <task.applylm.hpp>

Inheritance diagram for ucam::fsttools::ApplyBiLMTask< Data, Arc >:
Collaboration diagram for ucam::fsttools::ApplyBiLMTask< Data, Arc >:

Public Member Functions

 ApplyBiLMTask (const ucam::util::RegistryPO &rg, const std::string &lmkey, const std::string &latticeloadkey, const std::string &latticestorekey, bool deletelmscores)
 Constructor with ucam::util::RegistryPO object. More...
 
void initializeLanguageModelHandlers (Data &d)
 Initializes appropriate templated handlers for kenlm language models. More...
 
bool run (Data &d)
 Method inherited from ucam::util::TaskInterface. Loads the language model and stores in lm data structure. More...
 
 ~ApplyBiLMTask ()
 
- Public Member Functions inherited from ucam::util::TaskInterface< Data >
 TaskInterface ()
 Constructor. More...
 
virtual ~TaskInterface ()
 
bool chainrun (Data &d)
 Implements chain of responsability. Calls run method and, if there is another task, call its run method too. More...
 
bool operator() (Data &d)
 
TaskInterfaceappendTask (TaskInterface *t)
 Appends a task class. If there is no task, append here, otherwise delegate in next task. More...
 
TaskInterfaceoperator() (TaskInterface *t)
 
TaskInterfacegetTask ()
 Return appended task. More...
 
TaskInterfacenext ()
 

Detailed Description

template<class Data, class Arc>
class ucam::fsttools::ApplyBiLMTask< Data, Arc >

Definition at line 144 of file task.applylm.hpp.

Constructor & Destructor Documentation

template<class Data , class Arc >
ucam::fsttools::ApplyBiLMTask< Data, Arc >::ApplyBiLMTask ( const ucam::util::RegistryPO rg,
const std::string &  lmkey,
const std::string &  latticeloadkey,
const std::string &  latticestorekey,
bool  deletelmscores 
)
inlineexplicit

Constructor with ucam::util::RegistryPO object.

Definition at line 168 of file task.applylm.hpp.

template<class Data , class Arc >
ucam::fsttools::ApplyBiLMTask< Data, Arc >::~ApplyBiLMTask ( )
inline

Definition at line 245 of file task.applylm.hpp.

Member Function Documentation

template<class Data , class Arc >
void ucam::fsttools::ApplyBiLMTask< Data, Arc >::initializeLanguageModelHandlers ( Data &  d)
inline

Initializes appropriate templated handlers for kenlm language models.

We want the language model to ignore these guys:

Definition at line 186 of file task.applylm.hpp.

template<class Data , class Arc >
bool ucam::fsttools::ApplyBiLMTask< Data, Arc >::run ( Data &  d)
inlinevirtual

Method inherited from ucam::util::TaskInterface. Loads the language model and stores in lm data structure.

Parameters
&ddata structure in which the null filter is to be stored.
Returns
false (does not break the chain of tasks)

Implements ucam::util::TaskInterface< Data >.

Definition at line 212 of file task.applylm.hpp.

Here is the call graph for this function:


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