Cambridge SMT System
|
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>
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) |
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 () |
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.
|
inline |
Constructor with RegistryPO object.
Definition at line 49 of file task.hifst-stats.hpp.
|
inlinevirtual |
General run method from TaskInterface. Dumps all stats to a file.
&d | general Data structure containing a pointer to StatsData structure |
Implements ucam::util::TaskInterface< Data >.
Definition at line 61 of file task.hifst-stats.hpp.