Kaldi学习笔记 score-plda.sh 解读

1 Usage

<plda-dir> <xvector-dir> <output-dir>

<plda-dir> is where to store pretrained plda model.
<xvector-dir> is where to store xvector and corresponding spk2utt, etc.
output-dir is where to output the plda scores.

2 Code and Comments

feats="ark:ivector-subtract-global-mean $pldadir/mean.vec scp:$sdata/JOB/feats.scp ark:- | transform-vec $pldadir/transform.mat ark:- ark:- | ivector-normalize-length ark:- ark:- |"
$cmd JOB=1:$nj $dir/log/plda_scoring.JOB.log \
ivector-plda-scoring-dense --target-energy=$target_energy $pldadir/plda \
    ark:$sdata/JOB/spk2utt "$feats" ark,scp:$dir/scores.JOB.ark,$dir/scores.JOB.scp || exit 1;

ivector-subtract-global-mean use mean.vec, read and write from and into feats.scp;
ivector-plda-scoring-dense calculate plda scores.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。