Cambridge SMT System
ucam::fsttools::OLabelToFeature Struct Reference

#include <fstutils.topofeatures.hpp>

Public Types

typedef fst::StdArc FromArc
 
typedef TupleArc32 ToArc
 
typedef ToArc::Weight ToWeight
 

Public Member Functions

 OLabelToFeature (std::vector< unsigned > &features, unsigned size, bool replaceOlabelByTopologicalLabel=false)
 
void reset ()
 
ToArc operator() (FromArc const &arc) const
 
FromArc operator() (ToArc const &arc) const
 

Public Attributes

unsigned counter_
 
std::vector< unsigned > & features_
 
bool replaceOlabelByTopologicalLabel_
 

Detailed Description

Definition at line 58 of file fstutils.topofeatures.hpp.

Member Typedef Documentation

Definition at line 59 of file fstutils.topofeatures.hpp.

Definition at line 61 of file fstutils.topofeatures.hpp.

Constructor & Destructor Documentation

ucam::fsttools::OLabelToFeature::OLabelToFeature ( std::vector< unsigned > &  features,
unsigned  size,
bool  replaceOlabelByTopologicalLabel = false 
)
inlineexplicit

Definition at line 66 of file fstutils.topofeatures.hpp.

Member Function Documentation

ToArc ucam::fsttools::OLabelToFeature::operator() ( FromArc const &  arc) const
inline

Definition at line 76 of file fstutils.topofeatures.hpp.

FromArc ucam::fsttools::OLabelToFeature::operator() ( ToArc const &  arc) const
inline

Definition at line 101 of file fstutils.topofeatures.hpp.

void ucam::fsttools::OLabelToFeature::reset ( )
inline

Definition at line 75 of file fstutils.topofeatures.hpp.

Member Data Documentation

unsigned ucam::fsttools::OLabelToFeature::counter_
mutable

Definition at line 62 of file fstutils.topofeatures.hpp.

std::vector<unsigned>& ucam::fsttools::OLabelToFeature::features_

Definition at line 63 of file fstutils.topofeatures.hpp.

bool ucam::fsttools::OLabelToFeature::replaceOlabelByTopologicalLabel_

Definition at line 64 of file fstutils.topofeatures.hpp.


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