21 #ifndef KALDI_TRANSFORM_LVTLN_H_ 22 #define KALDI_TRANSFORM_LVTLN_H_ 65 std::string norm_type,
73 void Read(std::istream &is,
bool binary);
75 void Write(std::ostream &os,
bool binary)
const;
88 std::vector<Matrix<BaseFloat> >
A_;
100 #endif // KALDI_TRANSFORM_LVTLN_H_ This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
BaseFloat GetWarp(int32 i) const
friend class LinearVtlnStats
void SetTransform(int32 i, const MatrixBase< BaseFloat > &transform)
std::vector< Matrix< BaseFloat > > A_
Base class which provides matrix operations not involving resizing or allocation. ...
This does not work with multiple feature transforms.
void GetTransform(int32 i, MatrixBase< BaseFloat > *transform) const
void Read(std::istream &is, bool binary)
void ComputeTransform(const FmllrDiagGmmAccs &accs, std::string norm_type, BaseFloat logdet_scale, MatrixBase< BaseFloat > *Ws, int32 *class_idx, BaseFloat *logdet_out, BaseFloat *objf_impr=NULL, BaseFloat *count=NULL)
Compute the transform for the speaker.
void GetOffset(const FmllrDiagGmmAccs &speaker_stats, int32 class_idx, VectorBase< BaseFloat > *offset) const
void SetWarp(int32 i, BaseFloat warp)
std::vector< BaseFloat > warps_
#define KALDI_ASSERT(cond)
void Write(std::ostream &os, bool binary) const
Provides a vector abstraction class.
std::vector< BaseFloat > logdets_