无法通过配置加载停用词词典
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:可能文档对小白不太友好