Cambridge SMT System
|
Task that writes translation to a text file. This translation might be recased, wordmapped and tokenized. More...
#include <task.postpro.hpp>
Public Member Functions | |
PostProTask (const ucam::util::RegistryPO &rg, const std::string &inputkey=HifstConstants::kPostproInput, const std::string &wordmapkey=HifstConstants::kPostproWordmapLoad) | |
Constructor with ucam::util::RegistryPO object and keys to access lattice and wordmap. More... | |
void | setDetokenize (bool detok) |
Turn on/off tokenization. More... | |
bool | run (Data &d) |
Writes 1-best to file. Optionally, recases, maps back to words, and detokenizes. 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 () |
Task that writes translation to a text file. This translation might be recased, wordmapped and tokenized.
Definition at line 32 of file task.postpro.hpp.
|
inline |
Constructor with ucam::util::RegistryPO object and keys to access lattice and wordmap.
Definition at line 58 of file task.postpro.hpp.
|
inlinevirtual |
Writes 1-best to file. Optionally, recases, maps back to words, and detokenizes.
&d | Data structure conatining d.translationlattice. |
Implements ucam::util::TaskInterface< Data >.
Definition at line 86 of file task.postpro.hpp.
|
inline |
Turn on/off tokenization.
Definition at line 77 of file task.postpro.hpp.