Hanlp_自定义此词典

1.删除data里的CustomDictionary.txt.bin文件

2.添加自定义的词典MyDictionary到data目录;

3.编辑hanlp.properies文件

编辑前--->CustomDictionaryPath=data/dictionary/custom/CustomDictionary.txt;现代汉语补充词库.txt;

编辑后--->CustomDictionaryPath=data/dictionary/custom/MyDictionary.txt;CustomDictionary.txt;现代汉语补充词库.txt;

猜你喜欢

转载自www.cnblogs.com/hapyygril/p/12516255.html