Sphinx:无法打开 Sphinx/mixture_weights

Sphinx: Unable to open Sphinx/mixture_weights

我正在执行这条命令:

    ./bw \
    -hmmdir Sphinx \
    -moddeffn cmusphinx-en-us-ptm-5.2/mdef \
    -ts2cbfn .ptm. \
    -feat 1s_c_d_dd \
    -svspec 0-12/13-25/26-38 \
    -cmn current \
    -agc none \
    -dictfn cmudict-en-us.dict \
    -ctlfn arctic20.fileids \
    -lsnfn arctic20.transcription \
    -accumdir .

我收到此错误消息:

ERROR: "s3io.c", line 260: Unable to open Sphinx/mixture_weights for reading: No such file or directory

"mixture_weights" 文件与 mdef 文件位于同一文件夹中。我究竟做错了什么? 提前致谢。

您指定了错误的 hmmdir。试试这个

./bw \
    -hmmdir cmusphinx-en-us-ptm-5.2 \
    -moddeffn cmusphinx-en-us-ptm-5.2/mdef \
    -ts2cbfn .ptm. \
    -feat 1s_c_d_dd \
    -svspec 0-12/13-25/26-38 \
    -cmn current \
    -agc none \
    -dictfn cmudict-en-us.dict \
    -ctlfn arctic20.fileids \
    -lsnfn arctic20.transcription \
    -accumdir .