FST  openfst-1.7.2
OpenFst Library
Public Types | Public Member Functions | List of all members
fst::ParenFilter< Filter > Class Template Reference

#include <compose.h>

Public Types

using FST1 = typename Filter::FST1
 
using FST2 = typename Filter::FST2
 
using Arc = typename Filter::Arc
 
using Label = typename Arc::Label
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
using Matcher1 = typename Filter::Matcher1
 
using Matcher2 = typename Filter::Matcher2
 
using StackId = StateId
 
using ParenStack = PdtStack< StackId, Label >
 
using FilterState1 = typename Filter::FilterState
 
using FilterState2 = IntegerFilterState< StackId >
 
using FilterState = PairFilterState< FilterState1, FilterState2 >
 

Public Member Functions

 ParenFilter (const FST1 &fst1, const FST2 &fst2, Matcher1 *matcher1=nullptr, Matcher2 *matcher2=nullptr, const std::vector< std::pair< Label, Label >> *parens=nullptr, bool expand=false, bool keep_parens=true)
 
 ParenFilter (const ParenFilter &filter, bool safe=false)
 
FilterState Start () const
 
void SetState (StateId s1, StateId s2, const FilterState &fs)
 
FilterState FilterArc (Arc *arc1, Arc *arc2) const
 
void FilterFinal (Weight *w1, Weight *w2) const
 
Matcher1GetMatcher1 ()
 
Matcher2GetMatcher2 ()
 
uint64 Properties (uint64 iprops) const
 

Detailed Description

template<class Filter>
class fst::ParenFilter< Filter >

Definition at line 250 of file compose.h.

Member Typedef Documentation

template<class Filter>
using fst::ParenFilter< Filter >::Arc = typename Filter::Arc

Definition at line 254 of file compose.h.

template<class Filter>
using fst::ParenFilter< Filter >::FilterState = PairFilterState<FilterState1, FilterState2>

Definition at line 266 of file compose.h.

template<class Filter>
using fst::ParenFilter< Filter >::FilterState1 = typename Filter::FilterState

Definition at line 264 of file compose.h.

template<class Filter>
using fst::ParenFilter< Filter >::FilterState2 = IntegerFilterState<StackId>

Definition at line 265 of file compose.h.

template<class Filter>
using fst::ParenFilter< Filter >::FST1 = typename Filter::FST1

Definition at line 252 of file compose.h.

template<class Filter>
using fst::ParenFilter< Filter >::FST2 = typename Filter::FST2

Definition at line 253 of file compose.h.

template<class Filter>
using fst::ParenFilter< Filter >::Label = typename Arc::Label

Definition at line 255 of file compose.h.

template<class Filter>
using fst::ParenFilter< Filter >::Matcher1 = typename Filter::Matcher1

Definition at line 259 of file compose.h.

template<class Filter>
using fst::ParenFilter< Filter >::Matcher2 = typename Filter::Matcher2

Definition at line 260 of file compose.h.

template<class Filter>
using fst::ParenFilter< Filter >::ParenStack = PdtStack<StackId, Label>

Definition at line 263 of file compose.h.

template<class Filter>
using fst::ParenFilter< Filter >::StackId = StateId

Definition at line 262 of file compose.h.

template<class Filter>
using fst::ParenFilter< Filter >::StateId = typename Arc::StateId

Definition at line 256 of file compose.h.

template<class Filter>
using fst::ParenFilter< Filter >::Weight = typename Arc::Weight

Definition at line 257 of file compose.h.

Constructor & Destructor Documentation

template<class Filter>
fst::ParenFilter< Filter >::ParenFilter ( const FST1 fst1,
const FST2 fst2,
Matcher1 matcher1 = nullptr,
Matcher2 matcher2 = nullptr,
const std::vector< std::pair< Label, Label >> *  parens = nullptr,
bool  expand = false,
bool  keep_parens = true 
)
inline

Definition at line 268 of file compose.h.

template<class Filter>
fst::ParenFilter< Filter >::ParenFilter ( const ParenFilter< Filter > &  filter,
bool  safe = false 
)
inline

Definition at line 292 of file compose.h.

Member Function Documentation

template<class Filter>
FilterState fst::ParenFilter< Filter >::FilterArc ( Arc arc1,
Arc arc2 
) const
inline

Definition at line 323 of file compose.h.

template<class Filter>
void fst::ParenFilter< Filter >::FilterFinal ( Weight w1,
Weight w2 
) const
inline

Definition at line 346 of file compose.h.

template<class Filter>
Matcher1* fst::ParenFilter< Filter >::GetMatcher1 ( )
inline

Definition at line 353 of file compose.h.

template<class Filter>
Matcher2* fst::ParenFilter< Filter >::GetMatcher2 ( )
inline

Definition at line 355 of file compose.h.

template<class Filter>
uint64 fst::ParenFilter< Filter >::Properties ( uint64  iprops) const
inline

Definition at line 357 of file compose.h.

template<class Filter>
void fst::ParenFilter< Filter >::SetState ( StateId  s1,
StateId  s2,
const FilterState fs 
)
inline

Definition at line 305 of file compose.h.

template<class Filter>
FilterState fst::ParenFilter< Filter >::Start ( ) const
inline

Definition at line 301 of file compose.h.


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