#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 | |
CacheDeterministicOnDemandFst (DeterministicOnDemandFst< Arc > *fst, StateId num_cached_arcs=100000) | |
We don't take ownership of this pointer. The argument is "really" const. More... | |
virtual StateId | Start () |
virtual Weight | Final (StateId s) |
We don't bother caching the final-probs, just the arcs. More... | |
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 Member Functions | |
size_t | GetIndex (StateId src_state, Label ilabel) |
Private Attributes | |
DeterministicOnDemandFst< Arc > * | fst_ |
StateId | num_cached_arcs_ |
std::vector< std::pair< StateId, Arc > > | cached_arcs_ |
Definition at line 230 of file deterministic-fst.h.
typedef Arc::Label Label |
Definition at line 234 of file deterministic-fst.h.
typedef Arc::StateId StateId |
Definition at line 232 of file deterministic-fst.h.
typedef Arc::Weight Weight |
Definition at line 233 of file deterministic-fst.h.
CacheDeterministicOnDemandFst | ( | DeterministicOnDemandFst< Arc > * | fst, |
StateId | num_cached_arcs = 100000 |
||
) |
We don't take ownership of this pointer. The argument is "really" const.
Definition at line 223 of file deterministic-fst-inl.h.
References CacheDeterministicOnDemandFst< Arc >::cached_arcs_, rnnlm::i, and KALDI_ASSERT.
We don't bother caching the final-probs, just the arcs.
Implements DeterministicOnDemandFst< Arc >.
Definition at line 243 of file deterministic-fst.h.
References DeterministicOnDemandFst< Arc >::GetArc().
Referenced by fst::TestBackoffAndCache().
Note: ilabel must not be epsilon.
Implements DeterministicOnDemandFst< Arc >.
Definition at line 234 of file deterministic-fst-inl.h.
References CacheDeterministicOnDemandFst< Arc >::cached_arcs_, CacheDeterministicOnDemandFst< Arc >::fst_, CacheDeterministicOnDemandFst< Arc >::GetIndex(), and KALDI_ASSERT.
Referenced by fst::TestBackoffAndCache().
Definition at line 210 of file deterministic-fst-inl.h.
Referenced by CacheDeterministicOnDemandFst< Arc >::GetArc().
|
inlinevirtual |
Implements DeterministicOnDemandFst< Arc >.
Definition at line 240 of file deterministic-fst.h.
Referenced by fst::TestCompose().
|
private |
Definition at line 253 of file deterministic-fst.h.
Referenced by CacheDeterministicOnDemandFst< Arc >::CacheDeterministicOnDemandFst(), and CacheDeterministicOnDemandFst< Arc >::GetArc().
|
private |
Definition at line 251 of file deterministic-fst.h.
Referenced by CacheDeterministicOnDemandFst< Arc >::GetArc().
|
private |
Definition at line 252 of file deterministic-fst.h.