A structure defined inside HmmTopology to represent a HMM state. More...
#include <hmm-topology.h>
Public Member Functions | |
HmmState (int32 pdf_class) | |
HmmState (int32 forward_pdf_class, int32 self_loop_pdf_class) | |
bool | operator== (const HmmState &other) const |
HmmState () | |
Public Attributes | |
int32 | forward_pdf_class |
The Pdf-classes forward-pdf-class, typically 0, 1 or 2 (the same as the HMM-state index), but may be different to enable us to hardwire sharing of state, and may be equal to kNoPdf == -1 in order to specify nonemitting states (unusual). More... | |
int32 | self_loop_pdf_class |
The Pdf-classes self-loop pdf-class, similar to Pdf-classes forward-pdf-class. More... | |
std::vector< std::pair< int32, BaseFloat > > | transitions |
A list of transitions, indexed by what we call a 'transition-index'. More... | |
A structure defined inside HmmTopology to represent a HMM state.
Definition at line 96 of file hmm-topology.h.
Definition at line 111 of file hmm-topology.h.
Definition at line 115 of file hmm-topology.h.
References HmmTopology::HmmState::forward_pdf_class, KALDI_ASSERT, and HmmTopology::HmmState::self_loop_pdf_class.
|
inline |
Definition at line 128 of file hmm-topology.h.
Definition at line 122 of file hmm-topology.h.
References HmmTopology::HmmState::forward_pdf_class, HmmTopology::HmmState::self_loop_pdf_class, and HmmTopology::HmmState::transitions.
int32 forward_pdf_class |
The Pdf-classes forward-pdf-class, typically 0, 1 or 2 (the same as the HMM-state index), but may be different to enable us to hardwire sharing of state, and may be equal to kNoPdf == -1 in order to specify nonemitting states (unusual).
Definition at line 100 of file hmm-topology.h.
Referenced by kaldi::GeneratePathThroughHmm(), HmmTopology::HmmState::HmmState(), and HmmTopology::HmmState::operator==().
int32 self_loop_pdf_class |
The Pdf-classes self-loop pdf-class, similar to Pdf-classes forward-pdf-class.
They will either both be kNoPdf, or neither be kNoPdf.
Definition at line 104 of file hmm-topology.h.
Referenced by HmmTopology::HmmState::HmmState(), and HmmTopology::HmmState::operator==().
A list of transitions, indexed by what we call a 'transition-index'.
The first member of each pair is the index of the next HmmState, and the second is the default transition probability (before training).
Definition at line 109 of file hmm-topology.h.
Referenced by TransitionModel::ComputeDerived(), kaldi::GeneratePathThroughHmm(), HmmTopology::MinLength(), and HmmTopology::HmmState::operator==().