|
Cambridge SMT System
|
#include <task.applylm.hpp>


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) |
| TaskInterface & | appendTask (TaskInterface *t) |
| Appends a task class. If there is no task, append here, otherwise delegate in next task. More... | |
| TaskInterface & | operator() (TaskInterface *t) |
| TaskInterface * | getTask () |
| Return appended task. More... | |
| TaskInterface * | next () |
Definition at line 144 of file task.applylm.hpp.
|
inlineexplicit |
Constructor with ucam::util::RegistryPO object.
Definition at line 168 of file task.applylm.hpp.
|
inline |
Definition at line 245 of file task.applylm.hpp.
|
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.
|
inlinevirtual |
Method inherited from ucam::util::TaskInterface. Loads the language model and stores in lm data structure.
| &d | data structure in which the null filter is to be stored. |
Implements ucam::util::TaskInterface< Data >.
Definition at line 212 of file task.applylm.hpp.
