AnyListen / elasticsearch-analysis-hanlp

HanLP Analysis for Elasticsearch
89 stars 30 forks source link

请教hanlp_crf的使用问题: 设置了hanlp_crf分词,但是测试分词效果会报npe #6

Closed zhanghuangjie closed 5 years ago

zhanghuangjie commented 5 years ago

Caused by: java.lang.NullPointerException at org.elasticsearch.plugin.hanlp.lucene.SegmentWrapper.next(SegmentWrapper.java:80) ~[?:?]

另外插件文件名好像必须写定是 “analysis-hanlp”对吧?

AnyListen commented 5 years ago

请配置完整版词典,词典配置无误即可正常使用

elasticsearch.plugin.name 为 analysis-hanlp