FST  openfst-1.7.2
OpenFst Library
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
fst::internal::RelationDeterminizeFilter< Arc, Relation > Class Template Reference

#include <disambiguate.h>

Classes

struct  rebind
 

Public Types

using Label = typename Arc::Label
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
using FilterState = IntegerFilterState< StateId >
 
using StateTuple = DeterminizeStateTuple< Arc, FilterState >
 
using Subset = typename StateTuple::Subset
 
using Element = typename StateTuple::Element
 
using LabelMap = std::multimap< Label, DeterminizeArc< StateTuple >>
 

Public Member Functions

 RelationDeterminizeFilter (const Fst< Arc > &fst)
 
 RelationDeterminizeFilter (const Fst< Arc > &fst, Relation *r)
 
 RelationDeterminizeFilter (const Fst< Arc > &fst, Relation *r, std::vector< StateId > *head)
 
template<class Filter >
 RelationDeterminizeFilter (const Fst< Arc > &fst, Filter *filter)
 
 RelationDeterminizeFilter (const RelationDeterminizeFilter &filter, const Fst< Arc > *fst=nullptr)
 
FilterState Start () const
 
void SetState (StateId s, const StateTuple &tuple)
 
bool FilterArc (const Arc &arc, const Element &src_element, const Element &dest_element, LabelMap *label_map) const
 
Weight FilterFinal (const Weight final_weight, const Element &element) const
 
const Relation & GetRelation ()
 
std::vector< StateId > * GetHeadStates ()
 

Static Public Member Functions

static uint64 Properties (uint64 props)
 

Detailed Description

template<class Arc, class Relation>
class fst::internal::RelationDeterminizeFilter< Arc, Relation >

Definition at line 48 of file disambiguate.h.

Member Typedef Documentation

template<class Arc , class Relation >
using fst::internal::RelationDeterminizeFilter< Arc, Relation >::Element = typename StateTuple::Element

Definition at line 57 of file disambiguate.h.

template<class Arc , class Relation >
using fst::internal::RelationDeterminizeFilter< Arc, Relation >::FilterState = IntegerFilterState<StateId>

Definition at line 54 of file disambiguate.h.

template<class Arc , class Relation >
using fst::internal::RelationDeterminizeFilter< Arc, Relation >::Label = typename Arc::Label

Definition at line 50 of file disambiguate.h.

template<class Arc , class Relation >
using fst::internal::RelationDeterminizeFilter< Arc, Relation >::LabelMap = std::multimap<Label, DeterminizeArc<StateTuple>>

Definition at line 58 of file disambiguate.h.

template<class Arc , class Relation >
using fst::internal::RelationDeterminizeFilter< Arc, Relation >::StateId = typename Arc::StateId

Definition at line 51 of file disambiguate.h.

template<class Arc , class Relation >
using fst::internal::RelationDeterminizeFilter< Arc, Relation >::StateTuple = DeterminizeStateTuple<Arc, FilterState>

Definition at line 55 of file disambiguate.h.

template<class Arc , class Relation >
using fst::internal::RelationDeterminizeFilter< Arc, Relation >::Subset = typename StateTuple::Subset

Definition at line 56 of file disambiguate.h.

template<class Arc , class Relation >
using fst::internal::RelationDeterminizeFilter< Arc, Relation >::Weight = typename Arc::Weight

Definition at line 52 of file disambiguate.h.

Constructor & Destructor Documentation

template<class Arc , class Relation >
fst::internal::RelationDeterminizeFilter< Arc, Relation >::RelationDeterminizeFilter ( const Fst< Arc > &  fst)
inlineexplicit

Definition at line 68 of file disambiguate.h.

template<class Arc , class Relation >
fst::internal::RelationDeterminizeFilter< Arc, Relation >::RelationDeterminizeFilter ( const Fst< Arc > &  fst,
Relation *  r 
)
inline

Definition at line 72 of file disambiguate.h.

template<class Arc , class Relation >
fst::internal::RelationDeterminizeFilter< Arc, Relation >::RelationDeterminizeFilter ( const Fst< Arc > &  fst,
Relation *  r,
std::vector< StateId > *  head 
)
inline

Definition at line 76 of file disambiguate.h.

template<class Arc , class Relation >
template<class Filter >
fst::internal::RelationDeterminizeFilter< Arc, Relation >::RelationDeterminizeFilter ( const Fst< Arc > &  fst,
Filter *  filter 
)
inline

Definition at line 83 of file disambiguate.h.

template<class Arc , class Relation >
fst::internal::RelationDeterminizeFilter< Arc, Relation >::RelationDeterminizeFilter ( const RelationDeterminizeFilter< Arc, Relation > &  filter,
const Fst< Arc > *  fst = nullptr 
)
inline

Definition at line 92 of file disambiguate.h.

Member Function Documentation

template<class Arc , class Relation >
bool fst::internal::RelationDeterminizeFilter< Arc, Relation >::FilterArc ( const Arc &  arc,
const Element src_element,
const Element dest_element,
LabelMap label_map 
) const

Definition at line 146 of file disambiguate.h.

template<class Arc , class Relation >
Weight fst::internal::RelationDeterminizeFilter< Arc, Relation >::FilterFinal ( const Weight  final_weight,
const Element element 
) const
inline

Definition at line 120 of file disambiguate.h.

template<class Arc , class Relation >
std::vector<StateId>* fst::internal::RelationDeterminizeFilter< Arc, Relation >::GetHeadStates ( )
inline

Definition at line 130 of file disambiguate.h.

template<class Arc , class Relation >
const Relation& fst::internal::RelationDeterminizeFilter< Arc, Relation >::GetRelation ( )
inline

Definition at line 128 of file disambiguate.h.

template<class Arc , class Relation >
static uint64 fst::internal::RelationDeterminizeFilter< Arc, Relation >::Properties ( uint64  props)
inlinestatic

Definition at line 124 of file disambiguate.h.

template<class Arc , class Relation >
void fst::internal::RelationDeterminizeFilter< Arc, Relation >::SetState ( StateId  s,
const StateTuple tuple 
)
inline

Definition at line 101 of file disambiguate.h.

template<class Arc , class Relation >
FilterState fst::internal::RelationDeterminizeFilter< Arc, Relation >::Start ( ) const
inline

Definition at line 99 of file disambiguate.h.


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