FST  openfst-1.8.3
OpenFst Library
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
fst::LinearFstData< A > Class Template Reference

#include <linear-fst-data.h>

Classes

class  GroupFeatureMap
 

Public Types

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

Public Member Functions

 LinearFstData ()
 
void EncodeStartState (std::vector< Label > *output) const
 
template<class Iterator >
void TakeTransition (Iterator buffer_end, Iterator trie_state_begin, Iterator trie_state_end, Label ilabel, Label olabel, std::vector< Label > *next, Weight *weight) const
 
template<class Iterator >
Weight FinalWeight (Iterator trie_state_begin, Iterator trie_state_end) const
 
Label GroupStartState (int group_id) const
 
Label GroupTransition (int group_id, int trie_state, Label ilabel, Label olabel, Weight *weight) const
 
Weight GroupFinalWeight (int group_id, int trie_state) const
 
Label MinInputLabel () const
 
Label MaxInputLabel () const
 
size_t MaxFutureSize () const
 
size_t NumGroups () const
 
std::pair< typename std::vector< Label >::const_iterator, typename std::vector< Label >::const_iterator > PossibleOutputLabels (Label word) const
 
std::ostream & Write (std::ostream &strm) const
 
template<class Iterator >
A::Weight FinalWeight (Iterator trie_state_begin, Iterator trie_state_end) const
 

Static Public Member Functions

static LinearFstData< A > * Read (std::istream &strm)
 

Static Public Attributes

static constexpr Label kStartOfSentence = -3
 
static constexpr Label kEndOfSentence = -2
 

Friends

class LinearFstDataBuilder< A >
 

Detailed Description

template<class A>
class fst::LinearFstData< A >

Definition at line 56 of file linear-fst-data.h.

Member Typedef Documentation

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

Definition at line 60 of file linear-fst-data.h.

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

Definition at line 61 of file linear-fst-data.h.

Constructor & Destructor Documentation

template<class A>
fst::LinearFstData< A >::LinearFstData ( )
inline

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

Member Function Documentation

template<class A>
void fst::LinearFstData< A >::EncodeStartState ( std::vector< Label > *  output) const
inline

Definition at line 75 of file linear-fst-data.h.

template<class A>
template<class Iterator >
Weight fst::LinearFstData< A >::FinalWeight ( Iterator  trie_state_begin,
Iterator  trie_state_end 
) const
template<class A>
template<class Iterator >
A::Weight fst::LinearFstData< A >::FinalWeight ( Iterator  trie_state_begin,
Iterator  trie_state_end 
) const
inline

Definition at line 192 of file linear-fst-data.h.

template<class A>
Weight fst::LinearFstData< A >::GroupFinalWeight ( int  group_id,
int  trie_state 
) const
inline

Definition at line 106 of file linear-fst-data.h.

template<class A>
Label fst::LinearFstData< A >::GroupStartState ( int  group_id) const
inline

Definition at line 96 of file linear-fst-data.h.

template<class A >
A::Label fst::LinearFstData< A >::GroupTransition ( int  group_id,
int  trie_state,
Label  ilabel,
Label  olabel,
Weight weight 
) const

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

template<class A>
size_t fst::LinearFstData< A >::MaxFutureSize ( ) const
inline

Definition at line 119 of file linear-fst-data.h.

template<class A>
Label fst::LinearFstData< A >::MaxInputLabel ( ) const
inline

Definition at line 112 of file linear-fst-data.h.

template<class A>
Label fst::LinearFstData< A >::MinInputLabel ( ) const
inline

Definition at line 110 of file linear-fst-data.h.

template<class A>
size_t fst::LinearFstData< A >::NumGroups ( ) const
inline

Definition at line 122 of file linear-fst-data.h.

template<class A >
std::pair< typename std::vector< typename A::Label >::const_iterator, typename std::vector< typename A::Label >::const_iterator > fst::LinearFstData< A >::PossibleOutputLabels ( Label  word) const
inline

Definition at line 205 of file linear-fst-data.h.

template<class A >
LinearFstData< A > * fst::LinearFstData< A >::Read ( std::istream &  strm)
inlinestatic

Definition at line 216 of file linear-fst-data.h.

template<class A >
template<class Iterator >
void fst::LinearFstData< A >::TakeTransition ( Iterator  buffer_end,
Iterator  trie_state_begin,
Iterator  trie_state_end,
Label  ilabel,
Label  olabel,
std::vector< Label > *  next,
Weight weight 
) const

Definition at line 162 of file linear-fst-data.h.

template<class A >
std::ostream & fst::LinearFstData< A >::Write ( std::ostream &  strm) const
inline

Definition at line 239 of file linear-fst-data.h.

Friends And Related Function Documentation

template<class A>
friend class LinearFstDataBuilder< A >
friend

Definition at line 58 of file linear-fst-data.h.

Member Data Documentation

template<class A>
constexpr Label fst::LinearFstData< A >::kEndOfSentence = -2
static

Definition at line 66 of file linear-fst-data.h.

template<class A>
constexpr Label fst::LinearFstData< A >::kStartOfSentence = -3
static

Definition at line 65 of file linear-fst-data.h.


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