crownpku / Rasa_NLU_Chi

Turn Chinese natural language into structured data 中文自然语言理解
Apache License 2.0
1.51k stars 423 forks source link

服务运行时Jieba的字典未加载 #52

Closed BobCN2017 closed 6 years ago

BobCN2017 commented 6 years ago

如题,运行服务后,开始工作,显示如下提示: 2018-05-26 12:13:30+0800 [-] No Jieba Default Dictionary found 2018-05-26 12:13:30+0800 [-] No Jieba User Dictionary found 看了一下,文件夹下的用户字典文件是有的,为啥都没加载成功呢?

BobCN2017 commented 6 years ago

唉,找到半天源码,最后原来是要用sample_configs/config_jieba_mitie_sklearn_plus_dict_path.yml 这个配置文件,jieba的默认字典文件没找到,从jieba项目拷过来,建个目录,放进去。最终config_jieba_mitie_sklearn_plus_dict_path.yml 文件中是这样: