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

Member Typedef Documentation

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

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

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

Definition at line 54 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 58 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 414 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 426 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 331 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 374 of file linear-fst-data-builder.h.

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

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

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

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


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