hankcs / hanlp-lucene-plugin

HanLP中文分词Lucene插件,支持包括Solr在内的基于Lucene的系统
http://www.hankcs.com/nlp/segment/full-text-retrieval-solr-integrated-hanlp-chinese-word-segmentation.html
Apache License 2.0
296 stars 99 forks source link

java: org.apache.lucene.util.RamUsageEstimator 中的 NUM_BYTES_CHAR 已过时 #36

Closed AnyListen closed 6 years ago

AnyListen commented 6 years ago

PorterStemmer.javaimport static org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_CHAR; 已经不建议使用了,可用使用 Character.BYTES 替换

hankcs commented 6 years ago

欢迎pr

AnyListen commented 6 years ago

仔细看了下,只有JDK1.8才开始支持 Character.BYTES