20 #ifndef KALDI_TRANSFORM_REGTREE_MLLR_DIAG_GMM_H_ 21 #define KALDI_TRANSFORM_REGTREE_MLLR_DIAG_GMM_H_ 45 opts->
Register(
"mllr-min-count", &min_count,
46 "Minimum count to estimate an MLLR transform.");
47 opts->
Register(
"mllr-use-regtree", &use_regtree,
48 "Use a regression-class tree for MLLR.");
70 void Write(std::ostream &out_stream,
bool binary)
const;
71 void Read(std::istream &in_stream,
bool binary);
79 return xform_matrices_;
86 std::vector<int32> bclass2xforms_;
96 xform_matrices_[regclass].CopyFromMat(mat,
kNoTrans);
129 void Write(std::ostream &out_stream,
bool binary)
const;
130 void Read(std::istream &in_stream,
bool binary,
bool add);
136 return baseclass_stats_;
147 int32 bclass_id)
const;
164 #endif // KALDI_TRANSFORM_REGTREE_MLLR_DIAG_GMM_H_
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
void DeletePointers(std::vector< A *> *v)
Deletes any non-NULL pointers in the vector v, and sets the corresponding entries of v to NULL...
TableWriter< KaldiObjectHolder< RegtreeMllrDiagGmm > > RegtreeMllrDiagGmmWriter
void Register(OptionsItf *opts)
An MLLR mean transformation is an affine transformation of Gaussian means.
std::vector< Matrix< BaseFloat > > xform_matrices_
Transform matrices: size() = num_xforms_.
int32 dim_
Dimension of feature vectors.
Base class which provides matrix operations not involving resizing or allocation. ...
This class is for when you are reading something in random access, but it may actually be stored per-...
Configuration variables for FMLLR transforms.
bool use_regtree
If 'true', find transforms to generate using regression tree.
BaseFloat min_count
Minimum occupancy for computing a transform.
void set_bclass2xforms(const std::vector< int32 > &in)
A templated class for writing objects to an archive or script file; see The Table concept...
const std::vector< Matrix< BaseFloat > > xform_matrices() const
Accessors.
const std::vector< AffineXformStats * > & baseclass_stats() const
#define KALDI_DISALLOW_COPY_AND_ASSIGN(type)
int32 NumBaseClasses() const
virtual void Register(const std::string &name, bool *ptr, const std::string &doc)=0
Allows random access to a collection of objects in an archive or script file; see The Table concept...
int32 Dim() const
Accessors.
SequentialTableReader< KaldiObjectHolder< RegtreeMllrDiagGmm > > RegtreeMllrDiagGmmSeqReader
RandomAccessTableReader< KaldiObjectHolder< RegtreeMllrDiagGmm > > RandomAccessRegtreeMllrDiagGmmReader
void SetParameters(const MatrixBase< BaseFloat > &mat, int32 regclass)
Mutators.
A regression tree is a clustering of Gaussian densities in an acoustic model, such that the group of ...
A templated class for reading objects sequentially from an archive or script file; see The Table conc...
std::vector< AffineXformStats * > baseclass_stats_
Per-baseclass stats; used for accumulation.
int32 num_baseclasses_
Number of baseclasses.
~RegtreeMllrDiagGmmAccs()
Class for computing the maximum-likelihood estimates of the parameters of an acoustic model that uses...
RandomAccessTableReaderMapped< KaldiObjectHolder< RegtreeMllrDiagGmm > > RandomAccessRegtreeMllrDiagGmmReaderMapped
int32 num_xforms_
Number of transforms == xform_matrices_.size()
Provides a vector abstraction class.
int32 dim_
Dimension of feature vectors.