NLPchina / ansj_seg

ansj分词.ict的真正java实现.分词效果速度都超过开源版的ict. 中文分词,人名识别,词性标注,用户自定义词典

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

无法通过配置加载停用词词典

WindowsXp-Beta opened this issue · comments

碰到了与#698 相同的问题,无法在library.properties中通过添加stop={停用词典路径}的方式过滤停用词。
Log

信息: init stop to env value is : library/baidu_stopwords.dic

ansj_seg version: 5.1.6

同样地,使用StopRecognition+filter.insertStopWords是可以过滤停用词的。

问题解决了,是我的使用方式有问题:man_facepalming:
参考 #488 ,需要在parse后加上
parse(content).recognition(StopLibrary.get())

PS:可能文档对小白不太友好