#include <kaldi-rnnlm.h>
Public Types | |
typedef fst::StdArc::Weight | Weight |
typedef fst::StdArc::StateId | StateId |
typedef fst::StdArc::Label | Label |
Public Types inherited from DeterministicOnDemandFst< fst::StdArc > | |
typedef fst::StdArc ::StateId | StateId |
typedef fst::StdArc ::Weight | Weight |
typedef fst::StdArc ::Label | Label |
Public Member Functions | |
RnnlmDeterministicFst (int32 max_ngram_order, KaldiRnnlmWrapper *rnnlm) | |
virtual StateId | Start () |
virtual Weight | Final (StateId s) |
virtual bool | GetArc (StateId s, Label ilabel, fst::StdArc *oarc) |
Public Member Functions inherited from DeterministicOnDemandFst< fst::StdArc > | |
virtual Weight | Final (StateId s)=0 |
virtual bool | GetArc (StateId s, Label ilabel, fst::StdArc *oarc)=0 |
Note: ilabel must not be epsilon. More... | |
virtual | ~DeterministicOnDemandFst () |
Private Types | |
typedef unordered_map< std::vector< Label >, StateId, VectorHasher< Label > > | MapType |
Private Attributes | |
StateId | start_state_ |
MapType | wseq_to_state_ |
std::vector< std::vector< Label > > | state_to_wseq_ |
KaldiRnnlmWrapper * | rnnlm_ |
int32 | max_ngram_order_ |
std::vector< std::vector< float > > | state_to_context_ |
Definition at line 70 of file kaldi-rnnlm.h.
typedef fst::StdArc::Label Label |
Definition at line 75 of file kaldi-rnnlm.h.
|
private |
Definition at line 92 of file kaldi-rnnlm.h.
typedef fst::StdArc::StateId StateId |
Definition at line 74 of file kaldi-rnnlm.h.
typedef fst::StdArc::Weight Weight |
Definition at line 73 of file kaldi-rnnlm.h.
RnnlmDeterministicFst | ( | int32 | max_ngram_order, |
KaldiRnnlmWrapper * | rnnlm | ||
) |
Definition at line 74 of file kaldi-rnnlm.cc.
References KaldiRnnlmWrapper::GetHiddenLayerSize(), KALDI_ASSERT, and KaldiRnnlmWrapper::rnnlm_.
|
virtual |
Definition at line 89 of file kaldi-rnnlm.cc.
References KALDI_ASSERT, logprob, and KaldiRnnlmWrapper::rnnlm_.
|
virtual |
Definition at line 99 of file kaldi-rnnlm.cc.
References KALDI_ASSERT, logprob, and KaldiRnnlmWrapper::rnnlm_.
|
inlinevirtual |
|
private |
Definition at line 98 of file kaldi-rnnlm.h.
|
private |
Definition at line 97 of file kaldi-rnnlm.h.
|
private |
Definition at line 93 of file kaldi-rnnlm.h.
|
private |
Definition at line 99 of file kaldi-rnnlm.h.
|
private |
Definition at line 95 of file kaldi-rnnlm.h.
|
private |
Definition at line 94 of file kaldi-rnnlm.h.