Public Member Functions

fst::PushWeightsComposeFilter< Filter, M1, M2, MT > Class Template Reference

#include <fst/lookahead-filter.h>

List of all members.

Public Member Functions

 PushWeightsComposeFilter (const FST1 &fst1, const FST2 &fst2, M1 *matcher1, M2 *matcher2)
 PushWeightsComposeFilter (const PushWeightsComposeFilter< Filter, M1, M2, MT > &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 *weight1, Weight *weight2) const
Matcher1 * GetMatcher1 ()
 Returns matchers; ownership states with filter.
Matcher2 * GetMatcher2 ()
const LookAheadSelector
< Matcher1, Matcher2, MT > & 
Selector () const
uint32 LookAheadFlags () const
bool LookAheadArc () const
bool LookAheadOutput () const
uint64 Properties (uint64 props) const

Detailed Description

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
class fst::PushWeightsComposeFilter< Filter, M1, M2, MT >

This filter adds weight-pushing to a lookahead composition filter using the LookAheadWeight() method of matcher argument. It is templated on an underlying lookahead filter, typically the basic lookahead filter. Weight-pushing in composition brings weights forward as much as possible based on the lookahead information.

Definition at line 272 of file lookahead-filter.h.


Constructor & Destructor Documentation

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
fst::PushWeightsComposeFilter< Filter, M1, M2, MT >::PushWeightsComposeFilter ( const FST1 &  fst1,
const FST2 &  fst2,
M1 *  matcher1,
M2 *  matcher2 
) [inline]

Definition at line 287 of file lookahead-filter.h.

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
fst::PushWeightsComposeFilter< Filter, M1, M2, MT >::PushWeightsComposeFilter ( const PushWeightsComposeFilter< Filter, M1, M2, MT > &  filter,
bool  safe = false 
) [inline]

Definition at line 291 of file lookahead-filter.h.


Member Function Documentation

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
FilterState fst::PushWeightsComposeFilter< Filter, M1, M2, MT >::FilterArc ( Arc *  arc1,
Arc *  arc2 
) const [inline]

Definition at line 305 of file lookahead-filter.h.

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
void fst::PushWeightsComposeFilter< Filter, M1, M2, MT >::FilterFinal ( Weight *  weight1,
Weight *  weight2 
) const [inline]

Definition at line 322 of file lookahead-filter.h.

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
Matcher1* fst::PushWeightsComposeFilter< Filter, M1, M2, MT >::GetMatcher1 (  )  [inline]

Returns matchers; ownership states with filter.

Definition at line 334 of file lookahead-filter.h.

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
Matcher2* fst::PushWeightsComposeFilter< Filter, M1, M2, MT >::GetMatcher2 (  )  [inline]

Definition at line 336 of file lookahead-filter.h.

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
bool fst::PushWeightsComposeFilter< Filter, M1, M2, MT >::LookAheadArc (  )  const [inline]

Definition at line 344 of file lookahead-filter.h.

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
uint32 fst::PushWeightsComposeFilter< Filter, M1, M2, MT >::LookAheadFlags (  )  const [inline]

Definition at line 342 of file lookahead-filter.h.

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
bool fst::PushWeightsComposeFilter< Filter, M1, M2, MT >::LookAheadOutput (  )  const [inline]

Definition at line 346 of file lookahead-filter.h.

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
uint64 fst::PushWeightsComposeFilter< Filter, M1, M2, MT >::Properties ( uint64  props  )  const [inline]

Definition at line 348 of file lookahead-filter.h.

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
const LookAheadSelector<Matcher1, Matcher2, MT>& fst::PushWeightsComposeFilter< Filter, M1, M2, MT >::Selector (  )  const [inline]

Definition at line 338 of file lookahead-filter.h.

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
void fst::PushWeightsComposeFilter< Filter, M1, M2, MT >::SetState ( StateId  s1,
StateId  s2,
const FilterState &  fs 
) [inline]

Definition at line 300 of file lookahead-filter.h.

template<class Filter, class M1 = LookAheadMatcher<typename Filter::FST1>, class M2 = M1, MatchType MT = MATCH_BOTH>
FilterState fst::PushWeightsComposeFilter< Filter, M1, M2, MT >::Start (  )  const [inline]

Definition at line 296 of file lookahead-filter.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines