今天在Linux上安
装好ultrasphinx后,打算跑一下rakeultrasphinx:configure生成
配置文件.
结果运行期间出现
提示Anonymousmoduleshavenonametobereferencedby
根据rake--trace提示,
找到了出错的地方,修改了一下,
便可以运行了
Iwasabletofixtheproblembychangingthelastcallinthe
load_constantsmethodfrom
#Buildthefield-to-typemappings.
Fields.instance.configure(MODEL_CONFIGURATION)
to
#Buildthefield-to-typemappings.
Ultrasphinx::Fields.instance.configure(MODEL_CONFIGURATION)