我正在开发一个使用CMU Sphinx4的应用程序,但当我尝试运行PythonTranscriber时,出现以下错误:
[root@karen python]# java -cp /home/karen/jython2.5/jython.jar:$CLASSPATH org.python.util.jython PythonTranscriber.py
Traceback (most recent call last):
File "PythonTranscriber.py", line 36, in <module>
from edu.cmu.sphinx.jsapi import JSGFGrammar
ImportError: No module named jsapi
我注意到目录:"/home/karen/sphinx4-1.0beta5-scr2/sphinx4-1.0beta/lib"
没有jsapi.jar。
我试图在另一个目录中查找,但找不到。
如何在目录中获取jsapi.jar:"/home/karen/sphinx4-1.0beta5-scr2/sphinx4-1.0beta/lib"
它应该在那里!
请帮忙!
我也面临同样的错误。您只需安装sharutils即可。在我的例子中,我使用的是Redhat6,所以'sudoYuminstallsharutils'应该安装sharutils,并且您应该能够运行'sh jsapi.sh'而不出现任何错误。
我在网上搜索了一番(咒骂了一番),结果发现:
http://www.oracle.com/technetwork/java/jsapifaq-135248.html#implementation
这将指向提供JSAPI实现的人员列表。
它似乎与狮身人面像-4。见this installation tutorial。
基本说明:
从SourceForge下载Sphinx-4 1.0beta4 package。
然后,运行以下命令:
您需要接受出现在屏幕上的BCL许可协议(滚动到最后,然后按“y”),它将解压缩
jsapi.jar
。相关问题 更多 >
编程相关推荐