Cambridge SMT System
ucam::hifst::CYKParserTask< Data > Class Template Reference

Implements cyk+ parser. More...

#include <task.cykparser.hpp>

Inheritance diagram for ucam::hifst::CYKParserTask< Data >:
Collaboration diagram for ucam::hifst::CYKParserTask< Data >:

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 CYKdatagetcykdata ()
 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)
 
TaskInterfaceappendTask (TaskInterface *t)
 Appends a task class. If there is no task, append here, otherwise delegate in next task. More...
 
TaskInterfaceoperator() (TaskInterface *t)
 
TaskInterfacegetTask ()
 Return appended task. More...
 
TaskInterfacenext ()
 

Detailed Description

template<class Data>
class ucam::hifst::CYKParserTask< Data >

Implements cyk+ parser.

Definition at line 32 of file task.cykparser.hpp.

Constructor & Destructor Documentation

template<class Data>
ucam::hifst::CYKParserTask< Data >::CYKParserTask ( const ucam::util::RegistryPO rg)
inline

Constructor.

Parameters
rgregistry object.

Definition at line 62 of file task.cykparser.hpp.

template<class Data>
ucam::hifst::CYKParserTask< Data >::~CYKParserTask ( void  )
inline

Destructor.

Definition at line 138 of file task.cykparser.hpp.

Member Function Documentation

template<class Data>
const CYKdata* ucam::hifst::CYKParserTask< Data >::getcykdata ( )
inline

returns cykdata structure

Definition at line 144 of file task.cykparser.hpp.

template<class Data>
int ucam::hifst::CYKParserTask< Data >::getFinalResult ( )
inline

Returns success (number of nodes in topmost cell) or failure (CYK_RETURNS_FAILURE=0)

Definition at line 149 of file task.cykparser.hpp.

Here is the caller graph for this function:

template<class Data>
bool ucam::hifst::CYKParserTask< Data >::run ( Data &  d)
inlinevirtual

Runs the parsing algorithm.

Parameters
dContains sentence to parse, grammar, sentence-specific rule indices, etc.
Returns
False (not last task to run) or true (last task to run)

stage 1

stage 2

Implements ucam::util::TaskInterface< Data >.

Definition at line 79 of file task.cykparser.hpp.

Here is the caller graph for this function:


The documentation for this class was generated from the following file: