关于lattice(又叫词图),可以参考如下的文章
https://blog.csdn.net/u011930705/article/details/81737937
https://blog.csdn.net/yutianzuijin/article/details/77621511
那么把lattice打印出来,需要用到kaldi/egs/wsj/s5/utils/show_lattice.sh脚本
进入kaldi/egs/wsj/s5
执行如下的命令,将utt-id为1_0_0_0_0_0_0_0的语音对应的lattice打印出来,生成了1_0_0_0_0_0_0_0.pdf文件。
./utils/show_lattice.sh 1_0_0_0_0_0_0_0 ../../yesno/s5/exp/mono0a/decode_test_yesno/lat.1.gz ../../yesno/s5/data/lang/words.txt
如果路径相关的问题,修改一下kaldi/egs/wsj/s5下面的path.sh脚本。
下面就是utt-id为1_0_0_0_0_0_0_0的语音对应的lattice,对应的word就是yes no no no no no no no