FST  openfst-1.7.0
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 const Label kStartOfSentence = -3
 
static const Label kEndOfSentence = -2
 

Friends

class LinearFstDataBuilder< A >
 

Detailed Description

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

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

Member Typedef Documentation

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

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

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

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

Constructor & Destructor Documentation

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

Definition at line 51 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 56 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 178 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 87 of file linear-fst-data.h.

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

Definition at line 77 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 168 of file linear-fst-data.h.

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

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

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

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

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

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

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

Definition at line 103 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 191 of file linear-fst-data.h.

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

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

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

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

Friends And Related Function Documentation

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

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

Member Data Documentation

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

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

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

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


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