Cambridge SMT System
|
Loads a unigram transduction model (aka unimap file) from a file with the format accepted by srilm disambig tool. More...
#include <task.loadunimap.hpp>
Public Member Functions | |
LoadUnimapTask (const ucam::util::RegistryPO &rg, const std::string &unimapkey=HifstConstants::kRecaserUnimapLoad, const std::string &lmkey=HifstConstants::kRecaserLmLoad) | |
Constructor. More... | |
bool | run (Data &d) |
Loads unimap fst, and delivers pointer in data object. More... | |
virtual | ~LoadUnimapTask () |
Destructor. More... | |
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 () |
Loads a unigram transduction model (aka unimap file) from a file with the format accepted by srilm disambig tool.
Definition at line 34 of file task.loadunimap.hpp.
|
inline |
Constructor.
rg | Object containing user params |
unimapkey | key to deliver the unimap model in the data object |
Definition at line 69 of file task.loadunimap.hpp.
|
inlinevirtual |
Destructor.
Definition at line 100 of file task.loadunimap.hpp.
|
inlinevirtual |
Loads unimap fst, and delivers pointer in data object.
d; | Templated data object |
Implements ucam::util::TaskInterface< Data >.
Definition at line 91 of file task.loadunimap.hpp.