#include <deterministic-fst.h>
Public Types | |
typedef Arc::StateId | StateId |
typedef Arc::Weight | Weight |
typedef Arc::Label | Label |
Public Types inherited from DeterministicOnDemandFst< Arc > | |
typedef Arc::StateId | StateId |
typedef Arc::Weight | Weight |
typedef Arc::Label | Label |
Public Member Functions | |
ComposeDeterministicOnDemandFst (DeterministicOnDemandFst< Arc > *fst1, DeterministicOnDemandFst< Arc > *fst2) | |
Note: constructor does not "take ownership" of the input fst's. More... | |
virtual StateId | Start () |
virtual Weight | Final (StateId s) |
virtual bool | GetArc (StateId s, Label ilabel, Arc *oarc) |
Note: ilabel must not be epsilon. More... | |
Public Member Functions inherited from DeterministicOnDemandFst< Arc > | |
virtual | ~DeterministicOnDemandFst () |
Private Types | |
typedef unordered_map< std::pair< StateId, StateId >, StateId, kaldi::PairHasher< StateId > > | MapType |
Private Attributes | |
DeterministicOnDemandFst< Arc > * | fst1_ |
DeterministicOnDemandFst< Arc > * | fst2_ |
MapType | state_map_ |
std::vector< std::pair< StateId, StateId > > | state_vec_ |
StateId | next_state_ |
StateId | start_state_ |
Definition at line 199 of file deterministic-fst.h.
typedef Arc::Label Label |
Definition at line 203 of file deterministic-fst.h.
|
private |
Definition at line 221 of file deterministic-fst.h.
typedef Arc::StateId StateId |
Definition at line 201 of file deterministic-fst.h.
typedef Arc::Weight Weight |
Definition at line 202 of file deterministic-fst.h.
ComposeDeterministicOnDemandFst | ( | DeterministicOnDemandFst< Arc > * | fst1, |
DeterministicOnDemandFst< Arc > * | fst2 | ||
) |
Note: constructor does not "take ownership" of the input fst's.
The input fst's should be treated as const, in that their contents do not change, but they are not const as the DeterministicOnDemandFst's data-access functions are not const, for reasons relating to caching.
Definition at line 136 of file deterministic-fst-inl.h.
References ComposeDeterministicOnDemandFst< Arc >::fst1_, ComposeDeterministicOnDemandFst< Arc >::fst2_, KALDI_ASSERT, ComposeDeterministicOnDemandFst< Arc >::next_state_, ComposeDeterministicOnDemandFst< Arc >::start_state_, ComposeDeterministicOnDemandFst< Arc >::state_map_, and ComposeDeterministicOnDemandFst< Arc >::state_vec_.
|
virtual |
Implements DeterministicOnDemandFst< Arc >.
Definition at line 153 of file deterministic-fst-inl.h.
References ComposeDeterministicOnDemandFst< Arc >::fst1_, ComposeDeterministicOnDemandFst< Arc >::fst2_, KALDI_ASSERT, ComposeDeterministicOnDemandFst< Arc >::state_vec_, and fst::Times().
Note: ilabel must not be epsilon.
Implements DeterministicOnDemandFst< Arc >.
Definition at line 160 of file deterministic-fst-inl.h.
References ComposeDeterministicOnDemandFst< Arc >::fst1_, ComposeDeterministicOnDemandFst< Arc >::fst2_, KALDI_ASSERT, ComposeDeterministicOnDemandFst< Arc >::next_state_, ComposeDeterministicOnDemandFst< Arc >::state_map_, ComposeDeterministicOnDemandFst< Arc >::state_vec_, and fst::Times().
|
inlinevirtual |
Implements DeterministicOnDemandFst< Arc >.
Definition at line 212 of file deterministic-fst.h.
References DeterministicOnDemandFst< Arc >::Final(), and DeterministicOnDemandFst< Arc >::GetArc().
|
private |
Definition at line 219 of file deterministic-fst.h.
Referenced by ComposeDeterministicOnDemandFst< Arc >::ComposeDeterministicOnDemandFst(), ComposeDeterministicOnDemandFst< Arc >::Final(), and ComposeDeterministicOnDemandFst< Arc >::GetArc().
|
private |
Definition at line 220 of file deterministic-fst.h.
Referenced by ComposeDeterministicOnDemandFst< Arc >::ComposeDeterministicOnDemandFst(), ComposeDeterministicOnDemandFst< Arc >::Final(), and ComposeDeterministicOnDemandFst< Arc >::GetArc().
|
private |
Definition at line 225 of file deterministic-fst.h.
Referenced by ComposeDeterministicOnDemandFst< Arc >::ComposeDeterministicOnDemandFst(), and ComposeDeterministicOnDemandFst< Arc >::GetArc().
|
private |
Definition at line 226 of file deterministic-fst.h.
Referenced by ComposeDeterministicOnDemandFst< Arc >::ComposeDeterministicOnDemandFst().
|
private |
Definition at line 222 of file deterministic-fst.h.
Referenced by ComposeDeterministicOnDemandFst< Arc >::ComposeDeterministicOnDemandFst(), and ComposeDeterministicOnDemandFst< Arc >::GetArc().
Definition at line 223 of file deterministic-fst.h.
Referenced by ComposeDeterministicOnDemandFst< Arc >::ComposeDeterministicOnDemandFst(), ComposeDeterministicOnDemandFst< Arc >::Final(), and ComposeDeterministicOnDemandFst< Arc >::GetArc().