ali-to-hmmstate $ali/final.mdl ark:"gunzip -c $ali/ali.*.gz|" ark,t:$ali/states.tra
ali-to-phones --per-frame $ali/final.mdl ark:"gunzip -c $ali/ali.*.gz|" ark,t:- \
| utils/int2sym.pl -f 2- $lang/phones.txt > $ali/phones.txt
三、单词级别对齐
linear-to-nbest ark:"gunzip -c $ali/ali.*.gz|" \
ark:"utils/sym2int.pl --map-oov 1669 -f 2- $lang/words.txt < data/$step/text |" '' '' ark:- \
| lattice-align-words $lang/phones/word_boundary.int $ali/final.mdl ark:- ark:- \
| nbest-to-ctm --frame-shift=$FRAMESHIFT --precision=3 ark:- - \
| utils/int2sym.pl -f 5 $lang/words.txt > $ali/wrdalign.dat
参考:
[1] kaldi对齐 [个人博客]