HanLP icon indicating copy to clipboard operation
HanLP copied to clipboard

字符类型对应表加载失败

Open jdb110 opened this issue 11 years ago • 3 comments

在windows下正常,放到centos下去跑,出现这个提示。

jdb110 avatar Sep 18 '15 09:09 jdb110

Sep 18, 2015 5:49:58 PM com.hankcs.hanlp.dictionary.CoreDictionary load INFO: 核心词典开始加载:data/dictionary/CoreNatureDictionary.txt Sep 18, 2015 5:49:58 PM com.hankcs.hanlp.dictionary.CoreDictionary INFO: data/dictionary/CoreNatureDictionary.txt加载成功,153116个词条,耗时65ms Sep 18, 2015 5:49:58 PM com.hankcs.hanlp.dictionary.other.CharType INFO: 字符类型对应表开始加载 Sep 18, 2015 5:49:58 PM com.hankcs.hanlp.corpus.io.IOUtil readBytes WARNING: 读取时发生异常java.io.FileNotFoundException: (No such file or directory) 字符类型对应表加载失败:

jdb110 avatar Sep 18 '15 09:09 jdb110

我在Ubuntu和centos下面测试没有问题,半年来也没有接到过其他linux用户的类似报告,请确认jar版本是否最新?

hankcs avatar Sep 19 '15 02:09 hankcs

谢谢hankcs,修改了hanlp.dictionary.other.CharType忘了改过来。不好意思。

jdb110 avatar Sep 19 '15 06:09 jdb110