#include <decodable-online-looped.h>
Public Member Functions | |
DecodableAmNnetLoopedOnline (const TransitionModel &trans_model, const DecodableNnetSimpleLoopedInfo &info, OnlineFeatureInterface *input_features, OnlineFeatureInterface *ivector_features) | |
virtual int32 | NumIndices () const |
Returns the number of states in the acoustic model (they will be indexed one-based, i.e. More... | |
virtual BaseFloat | LogLikelihood (int32 subsampled_frame, int32 transition_id) |
Returns the log likelihood, which will be negated in the decoder. More... | |
Public Member Functions inherited from DecodableNnetLoopedOnlineBase | |
DecodableNnetLoopedOnlineBase (const DecodableNnetSimpleLoopedInfo &info, OnlineFeatureInterface *input_features, OnlineFeatureInterface *ivector_features) | |
virtual bool | IsLastFrame (int32 subsampled_frame) const |
Returns true if this is the last frame. More... | |
virtual int32 | NumFramesReady () const |
The call NumFramesReady() will return the number of frames currently available for this decodable object. More... | |
int32 | FrameSubsamplingFactor () const |
void | SetFrameOffset (int32 frame_offset) |
Sets the frame offset value. More... | |
int32 | GetFrameOffset () const |
Returns the frame offset value. More... | |
Public Member Functions inherited from DecodableInterface | |
virtual | ~DecodableInterface () |
Private Member Functions | |
KALDI_DISALLOW_COPY_AND_ASSIGN (DecodableAmNnetLoopedOnline) | |
Private Attributes | |
const TransitionModel & | trans_model_ |
Additional Inherited Members | |
Protected Member Functions inherited from DecodableNnetLoopedOnlineBase | |
void | EnsureFrameIsComputed (int32 subsampled_frame) |
If the neural-network outputs for this frame are not cached, this function computes them (and possibly also some later frames). More... | |
Protected Attributes inherited from DecodableNnetLoopedOnlineBase | |
Matrix< BaseFloat > | current_log_post_ |
int32 | num_chunks_computed_ |
int32 | current_log_post_subsampled_offset_ |
const DecodableNnetSimpleLoopedInfo & | info_ |
int32 | frame_offset_ |
Definition at line 183 of file decodable-online-looped.h.
|
inline |
Definition at line 185 of file decodable-online-looped.h.
|
private |
Returns the log likelihood, which will be negated in the decoder.
The "frame" starts from zero. You should verify that NumFramesReady() > frame before calling this.
Implements DecodableInterface.
Definition at line 249 of file decodable-online-looped.cc.
References DecodableNnetLoopedOnlineBase::current_log_post_, DecodableNnetLoopedOnlineBase::current_log_post_subsampled_offset_, DecodableNnetLoopedOnlineBase::EnsureFrameIsComputed(), and DecodableNnetLoopedOnlineBase::frame_offset_.
|
inlinevirtual |
Returns the number of states in the acoustic model (they will be indexed one-based, i.e.
from 1 to NumIndices(); this is for compatibility with OpenFst).
Implements DecodableInterface.
Definition at line 195 of file decodable-online-looped.h.
References DecodableInterface::LogLikelihood().
|
private |
Definition at line 203 of file decodable-online-looped.h.