-
Notifications
You must be signed in to change notification settings - Fork 10.9k
自定义字典报错java.lang.NumberFormatException: For input string: "gi" #444
Description
我把之前自定义词性为gi的字典扩充了一些内容进去,之后把缓存删掉重新启动就报了这个错误。。。。
三月 20, 2017 4:13:45 下午 com.hankcs.hanlp.corpus.io.IOUtil readBytes
警告: 读取D:/data/dictionary/CoreNatureDictionary.txt.bin时发生异常java.io.FileNotFoundException: D:\data\dictionary\CoreNatureDictionary.txt.bin (系统找不到指定的文件。)
三月 20, 2017 4:13:54 下午 com.hankcs.hanlp.dictionary.CoreBiGramTableDictionary loadDat
警告: 尝试载入缓存文件D:/data/dictionary/CoreNatureDictionary.ngram.txt.table.bin发生异常[java.io.FileNotFoundException: D:\data\dictionary\CoreNatureDictionary.ngram.txt.table.bin (系统找不到指定的文件。)],下面将载入源文件并自动缓存……
三月 20, 2017 4:13:58 下午 com.hankcs.hanlp.corpus.io.IOUtil readBytes
警告: 读取D:/data/dictionary/custom/CustomDictionary.txt.bin时发生异常java.io.FileNotFoundException: D:\data\dictionary\custom\CustomDictionary.txt.bin (系统找不到指定的文件。)
三月 20, 2017 4:13:59 下午 com.hankcs.hanlp.corpus.util.CustomNatureUtility
警告: 已激活自定义词性功能,由于采用了反射技术,用户需对本地环境的兼容性和稳定性负责!
如果用户代码X.java中有switch(nature)语句,需要调用CustomNatureUtility.registerSwitchClass(X.class)注册X这个类
三月 20, 2017 4:13:59 下午 com.hankcs.hanlp.dictionary.CustomDictionary load
严重: 自定义词典D:/data/dictionary/custom/tags.txt读取错误!java.lang.NumberFormatException: For input string: "gi"
三月 20, 2017 4:13:59 下午 com.hankcs.hanlp.dictionary.CustomDictionary loadMainDictionary
警告: 失败:D:/data/dictionary/custom/tags.txt
导致加载这个字典失败!!!!!!!!!!!!这是为什么??????????