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.