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

Reads StatsData and dumps all stats to (sentence-specific) file. Provides a special method for cyk data: dumps a grid in text format with relevant information per cell. More...

#include <task.hifst-stats.hpp>

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

Public Member Functions

 HifstStatsTask (const ucam::util::RegistryPO &rg)
 Constructor with RegistryPO object. More...
 
bool run (Data &d)
 General run method from TaskInterface. Dumps all stats to a file. 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::HifstStatsTask< Data >

Reads StatsData and dumps all stats to (sentence-specific) file. Provides a special method for cyk data: dumps a grid in text format with relevant information per cell.

Definition at line 36 of file task.hifst-stats.hpp.

Constructor & Destructor Documentation

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

Constructor with RegistryPO object.

Definition at line 49 of file task.hifst-stats.hpp.

Here is the call graph for this function:

Member Function Documentation

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

General run method from TaskInterface. Dumps all stats to a file.

Parameters
&dgeneral Data structure containing a pointer to StatsData structure

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

Definition at line 61 of file task.hifst-stats.hpp.

Here is the call graph for this function:


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