Cambridge SMT System
|
Class for multithreaded application of language model. Inherits taskinterface and provides standalone function object behaviour. More...
#include <main-run.applylm.hpp>
Public Member Functions | |
MultiThreadedApplyLanguageModelTask (ucam::util::RegistryPO const &rg) | |
Constructor. More... | |
bool | operator() () |
Standalone behaviour, just call the functor and it will do the job. More... | |
bool | run (Data &original_data) |
Multithread lm application. Runs only if option –nthreads defined >0. 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 multithreaded application of language model. Inherits taskinterface and provides standalone function object behaviour.
Definition at line 213 of file main-run.applylm.hpp.
|
inline |
Constructor.
rg | Registry object containing parameters |
Definition at line 246 of file main-run.applylm.hpp.
|
inline |
Standalone behaviour, just call the functor and it will do the job.
Definition at line 265 of file main-run.applylm.hpp.
|
inlinevirtual |
Multithread lm application. Runs only if option –nthreads defined >0.
Implements ucam::util::TaskInterface< DataT< ArcT > >.
Definition at line 280 of file main-run.applylm.hpp.