0

我正在使用 sphinx 4.0 识别器。在运行我的应用程序以在运行时交换两个静态定义的语法时,我在 ecllipse 中收到错误为“'helloLinguist' property:'grammar' - 未设置强制属性!”。我正在使用链接http://cmusphinx.sourceforge.net/wiki/sphinx4:swappinggrammars上提供的配置 xml 文件。请帮忙。

4

1 回答 1

0

您一定是不小心编辑了配置并删除/注释了该条目,或者您grammar在运行时删除了该元素。在您链接的配置中设置了属性:

<component name="helloLinguist" 
            type="edu.cmu.sphinx.linguist.flat.FlatLinguist">
    <property name="grammar" value="helloGrammar"/>
</component>
于 2013-04-16T11:43:20.103 回答