Kaldi查看文件的工具
kaldi官方提供了所有工具的说明
https://www.kaldi-asr.org/doc/tools.html
这里只是列出查看文件的工具.
Data from kaldiOfficial Documents。
Reproduced indicate the source.
Ark profile
copy-feats Can be used to change the format of feature data, it is possible to convert a file format ark txt Format:
Usage:
copy-feats [options]
Then execute the instruction:
copy-feats ark:foo.ark ark,t:foo.txt
ark binary file is stored, the instruction is copied to the file ark txt file.
FST file
$> fstprint –isymbols=phones.txt –osymbols=words.txt L.fst L.txt
Similarly you can view the map in pdf format:
$> fstdraw [–isymbols=phones.txt –osymbols=words.txt] L.fst | dot -Tps | ps2pdf – L.pdf
Examples:
$> fstdraw –isymbols=phones.txt –osymbols=words.txt HCLG.fst
Mdl model file
gmm Model View command:
$> gmm-copy [options]
such as:gmm-copy –binary=false 1.mdl 1_txt.mdl
dnn model with a Viewnnet-copy:
$> nnet-copy –binary=false 0.mdl final.txt
Decision tree
It is converted into text-format instructions:
$> copy-tree [–binary=false]
$> copy-tree [–binary=false] tree tree.txt>
It is converted to graphic format instructions:
$> draw-tree [options]
$> draw-tree phones.txt tree | dot -Gsize=8,10.5 -Tps | ps2pdf – tree.pdf
Ali.gz aligment
Align files can be viewed with command copy-int-vector
$> copy-int-vector [options] (vector-in-rspecifier) (vector-out-wspecifier)
Example:
$> copy-int-vector “ark:gunzip -c ali.1.gz|” ark,t:ali.txt
Alternatively, you can unpack, thenshow-alignmentsView:
$> show-alignments [options]
Examples:
$> show-alignments phones.txt final.mdl ark:ali.1 > ali.1.txt
There are similar:ali-to-phones, copy-int-vector
One Reply to “Kaldi查看文件的工具”