#include <trivial-factor-weight.h>
Classes | |
struct | Element |
class | ElementEqual |
class | ElementKey |
Public Types | |
typedef A | Arc |
typedef A::Label | Label |
typedef A::Weight | Weight |
typedef A::StateId | StateId |
typedef F | FactorIterator |
typedef DefaultCacheStore< A > | Store |
typedef Store::State | State |
Public Member Functions | |
TrivialFactorWeightFstImpl (const Fst< A > &fst, const TrivialFactorWeightOptions< A > &opts) | |
TrivialFactorWeightFstImpl (const TrivialFactorWeightFstImpl< A, F > &impl) | |
StateId | Start () |
Weight | Final (StateId s) |
size_t | NumArcs (StateId s) |
size_t | NumInputEpsilons (StateId s) |
size_t | NumOutputEpsilons (StateId s) |
void | InitArcIterator (StateId s, ArcIteratorData< A > *data) |
StateId | FindState (const Element &e) |
void | Expand (StateId s) |
Private Types | |
typedef unordered_map< Element, StateId, ElementKey, ElementEqual > | ElementMap |
Private Attributes | |
std::unique_ptr< const Fst< A > > | fst_ |
float | delta_ |
uint32 | mode_ |
Label | extra_ilabel_ |
Label | extra_olabel_ |
std::vector< Element > | elements_ |
ElementMap | element_map_ |
Definition at line 92 of file trivial-factor-weight.h.
typedef A Arc |
Definition at line 106 of file trivial-factor-weight.h.
|
private |
Definition at line 294 of file trivial-factor-weight.h.
typedef F FactorIterator |
Definition at line 110 of file trivial-factor-weight.h.
typedef A::Label Label |
Definition at line 107 of file trivial-factor-weight.h.
typedef Store::State State |
Definition at line 113 of file trivial-factor-weight.h.
typedef A::StateId StateId |
Definition at line 109 of file trivial-factor-weight.h.
typedef DefaultCacheStore<A> Store |
Definition at line 112 of file trivial-factor-weight.h.
typedef A::Weight Weight |
Definition at line 108 of file trivial-factor-weight.h.
|
inline |
Definition at line 124 of file trivial-factor-weight.h.
|
inline |
Definition at line 138 of file trivial-factor-weight.h.
|
inline |
Definition at line 230 of file trivial-factor-weight.h.
Definition at line 161 of file trivial-factor-weight.h.
References TrivialFactorWeightFstImpl< A, F >::Element::state, and TrivialFactorWeightFstImpl< A, F >::Element::weight.
Definition at line 216 of file trivial-factor-weight.h.
|
inline |
Definition at line 207 of file trivial-factor-weight.h.
Definition at line 189 of file trivial-factor-weight.h.
References fst::NumArcs().
Definition at line 195 of file trivial-factor-weight.h.
Definition at line 201 of file trivial-factor-weight.h.
|
inline |
Definition at line 150 of file trivial-factor-weight.h.
|
private |
Definition at line 297 of file trivial-factor-weight.h.
|
private |
Definition at line 302 of file trivial-factor-weight.h.
|
private |
Definition at line 301 of file trivial-factor-weight.h.
|
private |
Definition at line 299 of file trivial-factor-weight.h.
|
private |
Definition at line 300 of file trivial-factor-weight.h.
|
private |
Definition at line 296 of file trivial-factor-weight.h.
|
private |
Definition at line 298 of file trivial-factor-weight.h.