FST  openfst-1.6.1
OpenFst Library
Public Types | Public Member Functions | List of all members
fst::LinearClassifierFstDataBuilder< A > Class Template Reference

#include <linear-fst-data-builder.h>

Public Types

typedef A::Label Label
 
typedef A::Weight Weight
 

Public Member Functions

 LinearClassifierFstDataBuilder (size_t num_classes, const SymbolTable *isyms=nullptr, const SymbolTable *fsyms=nullptr, const SymbolTable *osyms=nullptr)
 
bool Error () const
 
bool AddWord (Label word, const std::vector< Label > &features)
 
int AddGroup ()
 
bool AddWeight (size_t group, const std::vector< Label > &input, Label pred, Weight weight)
 
LinearFstData< A > * Dump ()
 

Detailed Description

template<class A>
class fst::LinearClassifierFstDataBuilder< A >

Definition at line 180 of file linear-fst-data-builder.h.

Member Typedef Documentation

template<class A>
typedef A::Label fst::LinearClassifierFstDataBuilder< A >::Label

Definition at line 182 of file linear-fst-data-builder.h.

template<class A>
typedef A::Weight fst::LinearClassifierFstDataBuilder< A >::Weight

Definition at line 183 of file linear-fst-data-builder.h.

Constructor & Destructor Documentation

template<class A>
fst::LinearClassifierFstDataBuilder< A >::LinearClassifierFstDataBuilder ( size_t  num_classes,
const SymbolTable isyms = nullptr,
const SymbolTable fsyms = nullptr,
const SymbolTable osyms = nullptr 
)
inlineexplicit

Definition at line 189 of file linear-fst-data-builder.h.

Member Function Documentation

template<class A >
int fst::LinearClassifierFstDataBuilder< A >::AddGroup ( )
inline

Definition at line 615 of file linear-fst-data-builder.h.

template<class A >
bool fst::LinearClassifierFstDataBuilder< A >::AddWeight ( size_t  group,
const std::vector< Label > &  input,
Label  pred,
Weight  weight 
)
inline

Definition at line 630 of file linear-fst-data-builder.h.

template<class A >
bool fst::LinearClassifierFstDataBuilder< A >::AddWord ( Label  word,
const std::vector< Label > &  features 
)
inline

Definition at line 602 of file linear-fst-data-builder.h.

template<class A >
LinearFstData< A > * fst::LinearClassifierFstDataBuilder< A >::Dump ( )
inline

Definition at line 650 of file linear-fst-data-builder.h.

template<class A>
bool fst::LinearClassifierFstDataBuilder< A >::Error ( ) const
inline

Definition at line 200 of file linear-fst-data-builder.h.


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