锐英源软件
第一信赖

精通

英语

开源

擅长

开发

培训

胸怀四海 

第一信赖

当前位置:锐英源 / 开源技术 / 语音识别开源 / 把Lattice切分为每个发声对应的子Lattice
服务方向
人工智能数据处理
人工智能培训
kaldi数据准备
小语种语音识别
语音识别标注
语音识别系统
语音识别转文字
kaldi开发技术服务
软件开发
运动控制卡上位机
机械加工软件
软件开发培训
Java 安卓移动开发
VC++
C#软件
汇编和破解
驱动开发
联系方式
固话:0371-63888850
手机:138-0381-0136
Q Q:396806883
微信:ryysoft

把Lattice切分为每个发声对应的子Lattice


I have a lattice which was obtained after decoding the entire wav file. The decoder was decoding per utterance. When I open the lattice I can see that it has stamps for each utterance (All I see is the utterance stamp and the corresponding lattices in binary format, which is not readable to me). Can any one guide me as to how I can divide this big lattice into small lattices which will only have fsts for each utterance.我有一个在解码整个wav文件后获得的晶格。解码器正在按话语解码。当我打开格子时,我可以看到每个发声都有图章(我所看到的是发声图章和对应的二进制格式的格子,这对我来说是不可读的)。任何人都可以指导我如何将这个大格子分成小格子,而每个小格子只具有fsts。

have a look at script show_lattice.sh in egs/wsj/s5/utils The same trick that is used in lattice-to-fst should be usable for lattice-copy看看egs / wsj / s5 / utils中的脚本show_lattice.sh。晶格到fst中使用的相同技巧应可用于晶格复制

 

That is an archive of lattices. You need to read the Kaldi I/O tutorial section at kaldi.sf.net.
It is possible to do what you want by something like lattice-copy "ark:gunzip -c lat_archive.gz|" "scp:foo.scp" where foo.scp has lines like
utt_id1 some/dir/utt_id1.fst for each utterance.
However, that is not generally necessary a good thing to do- usually it's best to deal with archives to avoid I/O on many small files. Also, the
Kaldi lattice format is not readable by OpenFst due to a different weight type.
If you just want to look at the lattices, you could do lattice-copy "ark:gunzip -c lat_archive.gz|" ark,t:- | less which will put them in text form.那是格子的档案。您需要阅读kaldi.sf.net上的Kaldi I / O教程部分。
可以通过lattice-copy“ ark:gunzip -c lat_archive.gz |”来完成所需的操作 “ scp:foo.scp” ,其中foo.scp的每行都有类似 utt_id1 some / dir / utt_id1.fst 的行。
但是,通常不必这样做是一件好事-通常最好处理归档文件,以避免对许多小文件进行I / O。同样,由于权重类型不同,OpenFst无法读取Kaldi格格式。
如果您只想查看晶格,则可以进行lattice-copy“ ark:gunzip -c lat_archive.gz |” ark,t:-| 更少 ,它将以文本形式显示。

友情链接
版权所有 Copyright(c)2004-2021 锐英源软件
公司注册号:410105000449586 豫ICP备08007559号 最佳分辨率 1024*768
地址:郑州大学北校区院(文化路97号院)内