Cambridge SMT System
|
Core of Hifst. Implements the lattice-building procedure for a cyk-parsed sentence. More...
#include <task.hifst.hpp>
Public Member Functions | |
HiFSTTask (const ucam::util::RegistryPO &rg, const std::string &outputkey=HifstConstants::kHifstLatticeStore, const std::string &locallmkey=HifstConstants::kHifstLocalpruneLmLoad, const std::string &fullreferencelatticekey=HifstConstants::kReferencefilterNosubstringStore, const std::string &lmkey=HifstConstants::kLmLoad) | |
Constructor with registry object and several keys to access data object and registry. More... | |
bool | run (Data &d) |
Runs the lattice building procedure. 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 () |
Core of Hifst. Implements the lattice-building procedure for a cyk-parsed sentence.
Definition at line 50 of file task.hifst.hpp.
|
inline |
Constructor with registry object and several keys to access data object and registry.
Definition at line 152 of file task.hifst.hpp.
|
inlinevirtual |
Runs the lattice building procedure.
d | Contains the data structure with all the necessary elements (i.e. cykdata) and in which will be store a pointer to the output lattice. |
Keep calm, return empty lattice and carry on
If not yet, initialize now functor with local conditions.
Define hieroindex
Optimizations over the rtn – they are generally worth doing...
Implements ucam::util::TaskInterface< Data >.
Definition at line 224 of file task.hifst.hpp.