欢迎来到福编程网,本站提供各种互联网专业知识!

linux ultrasphinx Anonymous modules have no name to be referenced by

发布时间:2016-08-29 作者:佚名 来源:互联网
今天在Linux上安装好ultrasphinx后,打算跑一下rakeultrasphinx:configure生成配置文件.结果运行期间出现提示Anonymousmoduleshavenonametobereferencedby根据rake--trace提示,找到了出错的地方,修改了一下,便可以运行了Iwasabletofixtheproblemby
今天在Linux上安装好ultrasphinx后, 打算跑一下rake ultrasphinx:configure生成配置文件.

结果运行期间出现提示 Anonymous modules have no name to be referenced by

根据rake --trace 提示,找到了出错的地方,修改了一下,便可以运行了

I was able to fix the problem by changing the last call in the

load_constants method from

# Build the field-to-type mappings.

Fields.instance.configure(MODEL_CONFIGURATION)

to

# Build the field-to-type mappings.

Ultrasphinx::Fields.instance.configure(MODEL_CONFIGURATION)

相关推荐