linux ultrasphinx<br>Anonymous modules have no name to be referenced by

Ophelia ·
更新时间:2024-11-13
· 1989 次阅读

今天在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)



br Linux BY TO

需要 登录 后方可回复, 如果你还没有账号请 注册新账号