FST  openfst-1.8.3
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 199 of file linear-fst-data-builder.h.

Member Typedef Documentation

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

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

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

Definition at line 202 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 208 of file linear-fst-data-builder.h.

Member Function Documentation

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

Definition at line 634 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 649 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 621 of file linear-fst-data-builder.h.

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

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

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

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


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