FST  openfst-1.8.3
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_t Properties (uint64_t iprops) const
 

Detailed Description

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

Definition at line 280 of file compose.h.

Member Typedef Documentation

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

Definition at line 284 of file compose.h.

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

Definition at line 296 of file compose.h.

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

Definition at line 294 of file compose.h.

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

Definition at line 295 of file compose.h.

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

Definition at line 282 of file compose.h.

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

Definition at line 283 of file compose.h.

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

Definition at line 285 of file compose.h.

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

Definition at line 289 of file compose.h.

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

Definition at line 290 of file compose.h.

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

Definition at line 293 of file compose.h.

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

Definition at line 292 of file compose.h.

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

Definition at line 286 of file compose.h.

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

Definition at line 287 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 298 of file compose.h.

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

Definition at line 322 of file compose.h.

Member Function Documentation

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

Definition at line 353 of file compose.h.

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

Definition at line 376 of file compose.h.

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

Definition at line 383 of file compose.h.

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

Definition at line 385 of file compose.h.

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

Definition at line 387 of file compose.h.

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

Definition at line 335 of file compose.h.

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

Definition at line 331 of file compose.h.


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