Skip to content

Latest commit

 

History

History
40 lines (38 loc) · 1.33 KB

常用工具.md

File metadata and controls

40 lines (38 loc) · 1.33 KB

[Kaldi Tools]

  1. ark,scp文件可视化
    • ~/kaldi/src/featbin/copy-feats ark:test.ark ark,t:test_txt.ark
    • ~/kaldi/src/featbin/copy-feats scp:test.scp ark,t:test_txt.ark
  2. HCLG.fst文件可视化
    • ~/kaldi/tools/openfst/bin/fstprint L.fst | head -n 10
    • ~/kaldi/tools/openfst/bin/fstprint --isymbols=phones.txt --osymbols=words.txt L.fst | head -n 15
    • ~/kaldi/tools/openfst/bin/fstdraw [--isymbols=phones.txt --osymbols=words.txt] L.fst | dot –Tps | ps2pdf – L.pdf
  3. mdl文件
    • ~/kaldi/src/gmmbin/gmm-info final.mdl
    • ~/kaldi/src/gmmbin/gmm-copy --binary=false 0.mdl -
  4. tree文件
    • ~/kaldi/src/bin/tree-info tree
    • ~/kaldi/src/bin/copy-tree --binary=false tree -
    • ~/kaldi/src/bin/draw-tree phones.txt tree | dot -Gsize=50,100 -Tps|ps2pdf - tree.pdf
  5. ali.JOB.gz
    • gunzip ali.JOB.gz
  6. lattice文件可视化
    • ~/kaldi/src/latbin/lattice-to-nbest --acoustic-scale=0.1 --n=10 ark:lat.1 ark,t:lat.1.txt
  7. ali-to-phones
    • TODO
  8. fsts.JOB.gz
    • ~/kaldi/src/fstbin/fstcopy ark:fsts.JOB ark,t:fsts.JOB.txt
  9. .mat
    • ~/kaldi/src/bin/copy-matrix binary=false 1.mat -
  10. trains.1
    • TODO
  11. .alimdl
    • TODO
  12. show-alignments
    • TODO
  13. ali-to-post
    • TODO
  14. ali-to-pdf
    • TODO
  15. ali-to-phones
    • TODO