|
Cambridge SMT System
|
Class for single threaded application of language model. It inherits taskinterface behaviour and also provides standalone function object behaviour. More...
#include <main-run.applylm.hpp>


Public Member Functions | |
| SingleThreadedApplyLanguageModelTask (ucam::util::RegistryPO const &rg) | |
| Constructor. More... | |
| void | operator() () |
| bool | run (Data &original_data) |
| Core function running language model application. Creates list of tasks (load lm, apply lm) and executes. More... | |
Public Member Functions inherited from ucam::util::TaskInterface< DataT< ArcT > > | |
| TaskInterface () | |
| Constructor. More... | |
| virtual | ~TaskInterface () |
| bool | chainrun (DataT< ArcT > &d) |
| Implements chain of responsability. Calls run method and, if there is another task, call its run method too. More... | |
| bool | operator() (DataT< ArcT > &d) |
| TaskInterface & | operator() (TaskInterface *t) |
| TaskInterface & | appendTask (TaskInterface *t) |
| Appends a task class. If there is no task, append here, otherwise delegate in next task. More... | |
| TaskInterface * | getTask () |
| Return appended task. More... | |
| TaskInterface * | next () |
Class for single threaded application of language model. It inherits taskinterface behaviour and also provides standalone function object behaviour.
Definition at line 111 of file main-run.applylm.hpp.
|
inline |
Constructor.
| rg | Registry object containing parameters |
Definition at line 141 of file main-run.applylm.hpp.
|
inline |
Provides standalone behaviour (no external data object), just call the functor and it will do the job.
Definition at line 160 of file main-run.applylm.hpp.

|
inlinevirtual |
Core function running language model application. Creates list of tasks (load lm, apply lm) and executes.
| original_data | Data object |
Implements ucam::util::TaskInterface< DataT< ArcT > >.
Definition at line 170 of file main-run.applylm.hpp.
