我在语音识别的解码部分遇到问题。我按照步骤操作here http://www.speech.cs.cmu.edu/sphinx/tutorial.html。当我输入:perl scripts_pl/decode/slave.pl
,我收到这些错误:
模块:DECODE 使用之前训练的模型进行解码
解码从 0 开始的 130 个段(1 的第 1 部分)无法找到 /home/go/Documents/tutorial/an4/bin/sphinx3_decode 的可执行文件
在
/home/go/Documents/tutorial/an4/scripts_pl/decode/../lib/SphinxTrain/Util.pm
第299行。
对齐结果以查找错误率无法打开/home/go/Documents/tutorial/an4/result/an4-1-1.match word_align.pl
在 script_pl/decode/slave.pl 第 173 行处失败,错误代码为 65280。
Here is word_align.pl
179号线
#sub initialize {
my ($ref_words, $hyp_words, $align_matrix, $backtrace_matrix) = @_;
# All initial costs along the j axis are insertions
for (my $j = 0; $j <= @$hyp_words; ++$j) {
$$align_matrix[0][$j] = $j;
}
for (my $j = 0; $j <= @$hyp_words; ++$j) {
$$backtrace_matrix[0][$j] = INS;
}
# All initial costs along the i axis are deletions
for (my $i = 0; $i <= @$ref_words; ++$i) {
$$align_matrix[$i][0] = $i;
}
for (my $i = 0; $i <= @$ref_words; ++$i) {
$$backtrace_matrix[$i][0] = DEL;
}
#}
and Util.pm
第299行
die“无法找到 $cmd 的可执行文件”除非 -e $cmd;
为什么我错过了an4-1-1.match file
?
我按照这里的步骤操作http://www.speech.cs.cmu.edu/sphinx/tutorial.html http://www.speech.cs.cmu.edu/sphinx/tutorial.html
本教程已过时。最近的一个是http://cmusphinx.sourceforge.net/wiki/tutorialam http://cmusphinx.sourceforge.net/wiki/tutorialam
找不到可执行文件
/home/go/Documents/tutorial/an4/bin/sphinx3_decode
这是问题的一个原因。您需要将可执行文件复制到指定位置。然后再次运行解码。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)