FST  openfst-1.7.0
OpenFst Library
Public Types | Public Member Functions | List of all members
fst::MPdtParenFilter< 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 = internal::MPdtStack< StackId, Label >
 
using FilterState1 = typename Filter::FilterState
 
using FilterState2 = IntegerFilterState< StackId >
 
using FilterState = PairFilterState< FilterState1, FilterState2 >
 

Public Member Functions

 MPdtParenFilter (const FST1 &fst1, const FST2 &fst2, Matcher1 *matcher1=nullptr, Matcher2 *matcher2=nullptr, const std::vector< std::pair< Label, Label >> *parens=nullptr, const std::vector< Label > *assignments=nullptr, bool expand=false, bool keep_parens=true)
 
 MPdtParenFilter (const MPdtParenFilter &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::MPdtParenFilter< Filter >

Definition at line 18 of file compose.h.

Member Typedef Documentation

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

Definition at line 22 of file compose.h.

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

Definition at line 34 of file compose.h.

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

Definition at line 32 of file compose.h.

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

Definition at line 33 of file compose.h.

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

Definition at line 20 of file compose.h.

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

Definition at line 21 of file compose.h.

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

Definition at line 23 of file compose.h.

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

Definition at line 27 of file compose.h.

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

Definition at line 28 of file compose.h.

template<class Filter>
using fst::MPdtParenFilter< Filter >::ParenStack = internal::MPdtStack<StackId, Label>

Definition at line 31 of file compose.h.

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

Definition at line 30 of file compose.h.

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

Definition at line 24 of file compose.h.

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

Definition at line 25 of file compose.h.

Constructor & Destructor Documentation

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

Definition at line 36 of file compose.h.

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

Definition at line 62 of file compose.h.

Member Function Documentation

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

Definition at line 93 of file compose.h.

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

Definition at line 116 of file compose.h.

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

Definition at line 123 of file compose.h.

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

Definition at line 125 of file compose.h.

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

Definition at line 127 of file compose.h.

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

Definition at line 75 of file compose.h.

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

Definition at line 71 of file compose.h.


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