This class wraps an Fst, representing a language model, using the interface for "BackoffDeterministicOnDemandFst". More...
#include <deterministic-fst.h>
Public Types | |
typedef Arc::Weight | Weight |
typedef Arc::StateId | StateId |
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 | |
BackoffDeterministicOnDemandFst (const Fst< Arc > &fst) | |
StateId | Start () |
Weight | Final (StateId s) |
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 | |
StateId | GetBackoffState (StateId s, Weight *w) |
Private Attributes | |
const Fst< Arc > & | fst_ |
This class wraps an Fst, representing a language model, using the interface for "BackoffDeterministicOnDemandFst".
We expect that backoff arcs in the language model will have the epsilon label (label 0) on the arcs, and that there will be no other epsilons in the language model. We follow the epsilon arcs as long as a particular arc (or a final-prob) is not found at the current state.
Definition at line 100 of file deterministic-fst.h.
typedef Arc::Label Label |
Definition at line 104 of file deterministic-fst.h.
typedef Arc::StateId StateId |
Definition at line 103 of file deterministic-fst.h.
typedef Arc::Weight Weight |
Definition at line 102 of file deterministic-fst.h.
|
explicit |
Definition at line 58 of file deterministic-fst-inl.h.
References BackoffDeterministicOnDemandFst< Arc >::fst_, and KALDI_ASSERT.
|
virtual |
Implements DeterministicOnDemandFst< Arc >.
Definition at line 48 of file deterministic-fst-inl.h.
References fst::Times().
Note: ilabel must not be epsilon.
Implements DeterministicOnDemandFst< Arc >.
Definition at line 68 of file deterministic-fst-inl.h.
References BackoffDeterministicOnDemandFst< Arc >::fst_, BackoffDeterministicOnDemandFst< Arc >::GetBackoffState(), KALDI_ASSERT, and fst::Times().
Definition at line 33 of file deterministic-fst-inl.h.
Referenced by BackoffDeterministicOnDemandFst< Arc >::GetArc().
|
inlinevirtual |
Implements DeterministicOnDemandFst< Arc >.
Definition at line 108 of file deterministic-fst.h.
References DeterministicOnDemandFst< Arc >::Final(), and DeterministicOnDemandFst< Arc >::GetArc().
|
private |
Definition at line 117 of file deterministic-fst.h.
Referenced by BackoffDeterministicOnDemandFst< Arc >::BackoffDeterministicOnDemandFst(), and BackoffDeterministicOnDemandFst< Arc >::GetArc().