为什么我在这个语音识别代码中缺少an4-1-1.match文件



我在语音识别的解码部分遇到问题。我顺着台阶来到这里。当我键入:perl scripts_pl/decode/slave.pl时,我会得到以下错误:

模块:使用先前训练的模型进行解码正在解码从0开始的130个段(第1部分,共1部分)找不到/home/go/Documents/tutorial/an4/bin/shinx3_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在scripts_pl/decode/slave.pl第173行失败,错误代码为65280。

这是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;
    }
#}

Util.pm线299

die"找不到$cmd的可执行文件",除非-e$cmd;

为什么我错过了an4-1-1.match file

我顺着台阶来到这里http://www.speech.cs.cmu.edu/sphinx/tutorial.html

本教程已过时。最近的一个是http://cmusphinx.sourceforge.net/wiki/tutorialam

找不到的可执行文件/home/go/Documents/tutorial/an4/bin/shinx3_decode

这就是问题的原因之一。您需要将可执行文件复制到指定的位置。然后再次运行解码。

最新更新