pyhanlp自定义词典
1.查找pyhanlp安装路径
hanlp --version
2.将自定义词典文件MyDictionary.txt上传到 ......data/dictionary/custom/目录
3. 编辑hanlp.properies文件(字典之间必须空一格)
编辑前--->CustomDictionaryPath=data/dictionary/custom/CustomDictionary.txt; 现代汉语补充词库.txt;
编辑后--->CustomDictionaryPath=data/dictionary/custom/MyDictionary.txt;CustomDictionary.txt; 现代汉语补充词库.txt;
posted on 2020-03-24 08:05 happygril3 阅读(510) 评论(0) 收藏 举报
浙公网安备 33010602011771号