htk - lattice画图工具(plot lattice)
来源:互联网 发布:opencv lbp算法 编辑:程序博客网 时间:2024/05/25 12:22
对于生成的lattice文件,需要根据节点和边手动画出来lattice网络结构,非常不方便,找到一种方法可以把lattice转化为pdf的网络图形式。
一、安装工具
1.基于perl的cpan安装工具Graph-ReadWrite
sudo perl -MCPAN -e shellinstall Graphinstall XML::Parserinstall XML::Writerinstall IO::Fileinstall Graph::ReadWrite
2.安装dot
yum install graphviz-devel*
二、转化脚本
1.lattice -> dot
perl脚本如下
use Graph;use Graph::Reader::HTK;use Graph::Writer::Dot;my ($graph, $reader, $writer);my ($testfile);my $FILE;my $ingraph;$testfile = $ARGV[0];$genfile = $ARGV[1];$reader = Graph::Reader::HTK->new();$writer = Graph::Writer::Dot->new();$ingraph = $reader->read_graph($testfile);$writer->write_graph($ingraph, $genfile);
2.dot->pdf
shell命令如下:
dot -Tpdf $dot_file > $pdf_file
3.转化以后的结果
1 0
- htk - lattice画图工具(plot lattice)
- Visible Lattice Points(poj3090)
- Visible Lattice Points(POJ3090)
- kaldi 中lattice操作的几个工具
- Lattice paths
- kaldi lattice
- permutohedral lattice
- LATTICE FPGA 工具介绍之ACTIVE-HDL 建立工程及仿真步步来(1)
- LATTICE FPGA 工具介绍之ACTIVE-HDL 建立工程及仿真步步来(2)
- lattice面板数据分析(未完成)
- UVa 1602:Lattice Animals(BFS)
- Uva 1602 Lattice Animals (网格动物)
- Problem 15 Lattice paths (组合数学)
- lattice diamond 破解(获取license)方法
- lattice 的Synplify pro综合工具,以及RTL寄存器查看
- pku3090 Visible Lattice Points
- poj3090-Visible Lattice Points
- poj3090-Visible Lattice Points
- ssh整合(下)
- GibbsLDA strtokenizer.h分析
- Android之ffmpeg-H264解码-移植ffmpeg中的H264解码部分到Android
- confluence(二)--破解
- java的关键字synchronized用法总结
- htk - lattice画图工具(plot lattice)
- 老曹骑士
- 线性表
- 剑指offer题解 连续子数组的最大和
- android开发之http协议
- JavaScript初了解
- iOS 数据持久化方式 - 归档 反归档
- Java异常处理和设计
- Spark,Hello World