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

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

Public Types

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

Public Member Functions

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

Detailed Description

template<class A>
class fst::LinearFstDataBuilder< A >

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

Member Typedef Documentation

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

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

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

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

Constructor & Destructor Documentation

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

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

Member Function Documentation

template<class A >
int fst::LinearFstDataBuilder< A >::AddGroup ( size_t  future_size)
inline

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

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

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

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

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

template<class A >
bool fst::LinearFstDataBuilder< A >::AddWord ( Label  word,
const std::vector< Label > &  word_features,
const std::vector< Label > &  possible_output 
)

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

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

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

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

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


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