Cambridge SMT System
|
Converts patterns to instanced patterns. More...
#include <task.patternstoinstances.hpp>
Public Member Functions | |
PatternsToInstancesTask (const ucam::util::RegistryPO &rg) | |
Constructor. More... | |
bool | run (Data &d) |
Runs this task and modifies Data object inserting the instanced sentence-specific source patterns we were looking for. More... | |
~PatternsToInstancesTask () | |
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 () |
Converts patterns to instanced patterns.
Definition at line 36 of file task.patternstoinstances.hpp.
|
inline |
Constructor.
rg | RegistryPO object with configfile/command-line params parsed and ready to use. |
Definition at line 53 of file task.patternstoinstances.hpp.
|
inline |
Destructor.
Definition at line 77 of file task.patternstoinstances.hpp.
|
inlinevirtual |
Runs this task and modifies Data object inserting the instanced sentence-specific source patterns we were looking for.
d | Data object. |
Implements ucam::util::TaskInterface< Data >.
Definition at line 65 of file task.patternstoinstances.hpp.