|
Cambridge SMT System
|
Implements cyk+ parser. More...
#include <task.cykparser.hpp>


Public Member Functions | |
| CYKParserTask (const ucam::util::RegistryPO &rg) | |
| Constructor. More... | |
| bool | run (Data &d) |
| Runs the parsing algorithm. More... | |
| ~CYKParserTask (void) | |
| Destructor. More... | |
| const CYKdata * | getcykdata () |
| returns cykdata structure More... | |
| int | getFinalResult () |
| Returns success (number of nodes in topmost cell) or failure (CYK_RETURNS_FAILURE=0) 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 () |
Implements cyk+ parser.
Definition at line 32 of file task.cykparser.hpp.
|
inline |
|
inline |
Destructor.
Definition at line 138 of file task.cykparser.hpp.
|
inline |
returns cykdata structure
Definition at line 144 of file task.cykparser.hpp.
|
inline |
Returns success (number of nodes in topmost cell) or failure (CYK_RETURNS_FAILURE=0)
Definition at line 149 of file task.cykparser.hpp.

|
inlinevirtual |
Runs the parsing algorithm.
| d | Contains sentence to parse, grammar, sentence-specific rule indices, etc. |
stage 1
stage 2
Implements ucam::util::TaskInterface< Data >.
Definition at line 79 of file task.cykparser.hpp.
