属性异常组件:'jsgfGrammar'

时间:2016-10-16 23:32:17

标签: java eclipse sphinx4

所以我一直在尝试为Sphinx4编写自己的代码。我创建了自己的语法,配置和java文件,这些都是运行所必需的,并使用了HelloWorld演示中的代码。但是,当我运行代码时,我收到了这个错误:

Problem configuring HelloWorld: Property exception component:'jsgfGrammar' property:'grammarLocation' - Can't locate resource:/edu/cmu/sphinx/demo/hellowrld/
edu.cmu.sphinx.util.props.InternalConfigurationException: Can't locate resource:/edu/cmu/sphinx/demo/hellowrld/
Property exception component:'jsgfGrammar' property:'grammarLocation' - Can't locate resource:/edu/cmu/sphinx/demo/hellowrld/
edu.cmu.sphinx.util.props.InternalConfigurationException: Can't locate resource:/edu/cmu/sphinx/demo/hellowrld/

at edu.cmu.sphinx.util.props.ConfigurationManagerUtils.getResource(ConfigurationManagerUtils.java:483)

接着是更多显然缺失的edu.cmu.sphinx.util.props。

当我进入演示所在的项目文件夹时,那里没有任何文件,所以我不确定是否有文件丢失或不包括在内。一切都在同一个工作区文件夹中。

有没有人知道为什么我的程序没有运行?我需要这个基线才能正常工作,所以我可以编写自己的代码。

我们将非常感谢任何有关Sphinx4帮助的教程视频,链接或文档的引用。我看过Puneet和分享的视频正在关注YouTube。 Sphinx网站在启动方面没有帮助,因为他们主要讨论手动编写代码,这令人困惑。

0 个答案:

没有答案