|
Cambridge SMT System
|
Reads text file, performs tokenization and integer-mapping. More...
#include <task.prepro.hpp>


Public Member Functions | |
| PreProTask (const ucam::util::RegistryPO &rg, const std::string &wordmapkey=HifstConstants::kPreproWordmapLoad) | |
| Constructor. More... | |
| ~PreProTask () | |
| void | setTokenize (bool tok) |
| bool | run (Data &d) |
| Reads an input sentence, tokenizes and integer-maps. 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 () |
Reads text file, performs tokenization and integer-mapping.
Definition at line 33 of file task.prepro.hpp.
|
inline |
Constructor.
| rg | pointer to RegistryPO object with all parsed parameters. |
| wordmapkey | registry key to access wordmap file name |
Definition at line 60 of file task.prepro.hpp.
|
inline |
Definition at line 71 of file task.prepro.hpp.
|
inlinevirtual |
Reads an input sentence, tokenizes and integer-maps.
Implements ucam::util::TaskInterface< Data >.
Definition at line 81 of file task.prepro.hpp.

|
inline |
Definition at line 74 of file task.prepro.hpp.