Cambridge SMT System
ucam::fsttools::SingleThreadedApplyLanguageModelTask< DataT, ArcT > Class Template Reference

Class for single threaded application of language model. It inherits taskinterface behaviour and also provides standalone function object behaviour. More...

#include <main-run.applylm.hpp>

Inheritance diagram for ucam::fsttools::SingleThreadedApplyLanguageModelTask< DataT, ArcT >:
Collaboration diagram for ucam::fsttools::SingleThreadedApplyLanguageModelTask< DataT, ArcT >:

Public Member Functions

 SingleThreadedApplyLanguageModelTask (ucam::util::RegistryPO const &rg)
 Constructor. More...
 
void operator() ()
 
bool run (Data &original_data)
 Core function running language model application. Creates list of tasks (load lm, apply lm) and executes. More...
 
- Public Member Functions inherited from ucam::util::TaskInterface< DataT< ArcT > >
 TaskInterface ()
 Constructor. More...
 
virtual ~TaskInterface ()
 
bool chainrun (DataT< ArcT > &d)
 Implements chain of responsability. Calls run method and, if there is another task, call its run method too. More...
 
bool operator() (DataT< ArcT > &d)
 
TaskInterfaceoperator() (TaskInterface *t)
 
TaskInterfaceappendTask (TaskInterface *t)
 Appends a task class. If there is no task, append here, otherwise delegate in next task. More...
 
TaskInterfacegetTask ()
 Return appended task. More...
 
TaskInterfacenext ()
 

Detailed Description

template<template< class > class DataT, class ArcT>
class ucam::fsttools::SingleThreadedApplyLanguageModelTask< DataT, ArcT >

Class for single threaded application of language model. It inherits taskinterface behaviour and also provides standalone function object behaviour.

Definition at line 111 of file main-run.applylm.hpp.

Constructor & Destructor Documentation

template<template< class > class DataT, class ArcT >
ucam::fsttools::SingleThreadedApplyLanguageModelTask< DataT, ArcT >::SingleThreadedApplyLanguageModelTask ( ucam::util::RegistryPO const &  rg)
inline

Constructor.

Parameters
rgRegistry object containing parameters

Definition at line 141 of file main-run.applylm.hpp.

Member Function Documentation

template<template< class > class DataT, class ArcT >
void ucam::fsttools::SingleThreadedApplyLanguageModelTask< DataT, ArcT >::operator() ( )
inline

Provides standalone behaviour (no external data object), just call the functor and it will do the job.

Definition at line 160 of file main-run.applylm.hpp.

Here is the call graph for this function:

template<template< class > class DataT, class ArcT >
bool ucam::fsttools::SingleThreadedApplyLanguageModelTask< DataT, ArcT >::run ( Data &  original_data)
inlinevirtual

Core function running language model application. Creates list of tasks (load lm, apply lm) and executes.

Parameters
original_dataData object

Implements ucam::util::TaskInterface< DataT< ArcT > >.

Definition at line 170 of file main-run.applylm.hpp.

Here is the call graph for this function:


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