DecodableAmDiagGmm Class Reference

#include <decodable-am-diag-gmm.h>

Inheritance diagram for DecodableAmDiagGmm:
Collaboration diagram for DecodableAmDiagGmm:

Public Member Functions

 DecodableAmDiagGmm (const AmDiagGmm &am, const TransitionModel &tm, const Matrix< BaseFloat > &feats, BaseFloat log_sum_exp_prune=-1.0)
 
virtual BaseFloat LogLikelihood (int32 frame, int32 tid)
 Returns the log likelihood, which will be negated in the decoder. More...
 
virtual int32 NumIndices () const
 Returns the number of states in the acoustic model (they will be indexed one-based, i.e. More...
 
const TransitionModelTransModel ()
 
- Public Member Functions inherited from DecodableAmDiagGmmUnmapped
 DecodableAmDiagGmmUnmapped (const AmDiagGmm &am, const Matrix< BaseFloat > &feats, BaseFloat log_sum_exp_prune=-1.0)
 If you set log_sum_exp_prune to a value greater than 0 it will prune in the LogSumExp operation (larger = more exact); I suggest 5. More...
 
virtual int32 NumFramesReady () const
 The call NumFramesReady() will return the number of frames currently available for this decodable object. More...
 
virtual bool IsLastFrame (int32 frame) const
 Returns true if this is the last frame. More...
 
- Public Member Functions inherited from DecodableInterface
virtual ~DecodableInterface ()
 

Private Member Functions

 KALDI_DISALLOW_COPY_AND_ASSIGN (DecodableAmDiagGmm)
 

Private Attributes

const TransitionModeltrans_model_
 

Additional Inherited Members

- Protected Member Functions inherited from DecodableAmDiagGmmUnmapped
void ResetLogLikeCache ()
 
virtual BaseFloat LogLikelihoodZeroBased (int32 frame, int32 state_index)
 
- Protected Attributes inherited from DecodableAmDiagGmmUnmapped
const AmDiagGmmacoustic_model_
 
const Matrix< BaseFloat > & feature_matrix_
 
int32 previous_frame_
 
BaseFloat log_sum_exp_prune_
 
std::vector< LikelihoodCacheRecordlog_like_cache_
 

Detailed Description

Definition at line 98 of file decodable-am-diag-gmm.h.

Constructor & Destructor Documentation

◆ DecodableAmDiagGmm()

DecodableAmDiagGmm ( const AmDiagGmm am,
const TransitionModel tm,
const Matrix< BaseFloat > &  feats,
BaseFloat  log_sum_exp_prune = -1.0 
)
inline

Definition at line 100 of file decodable-am-diag-gmm.h.

104  : DecodableAmDiagGmmUnmapped(am, feats, log_sum_exp_prune),
105  trans_model_(tm) {}
const TransitionModel & trans_model_
DecodableAmDiagGmmUnmapped(const AmDiagGmm &am, const Matrix< BaseFloat > &feats, BaseFloat log_sum_exp_prune=-1.0)
If you set log_sum_exp_prune to a value greater than 0 it will prune in the LogSumExp operation (larg...

Member Function Documentation

◆ KALDI_DISALLOW_COPY_AND_ASSIGN()

KALDI_DISALLOW_COPY_AND_ASSIGN ( DecodableAmDiagGmm  )
private

◆ LogLikelihood()

virtual BaseFloat LogLikelihood ( int32  frame,
int32  index 
)
inlinevirtual

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.

Reimplemented from DecodableAmDiagGmmUnmapped.

Definition at line 108 of file decodable-am-diag-gmm.h.

References DecodableAmDiagGmmUnmapped::LogLikelihoodZeroBased().

108  {
109  return LogLikelihoodZeroBased(frame,
111  }
int32 TransitionIdToPdf(int32 trans_id) const
const TransitionModel & trans_model_
virtual BaseFloat LogLikelihoodZeroBased(int32 frame, int32 state_index)

◆ NumIndices()

virtual int32 NumIndices ( ) const
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).

Reimplemented from DecodableAmDiagGmmUnmapped.

Definition at line 113 of file decodable-am-diag-gmm.h.

113 { return trans_model_.NumTransitionIds(); }
const TransitionModel & trans_model_
int32 NumTransitionIds() const
Returns the total number of transition-ids (note, these are one-based).

◆ TransModel()

const TransitionModel* TransModel ( )
inline

Definition at line 115 of file decodable-am-diag-gmm.h.

115 { return &trans_model_; }
const TransitionModel & trans_model_

Member Data Documentation

◆ trans_model_

const TransitionModel& trans_model_
private

Definition at line 117 of file decodable-am-diag-gmm.h.


The documentation for this class was generated from the following file: