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

fix issue #29 #30

Closed kevindragon closed 6 years ago

kevindragon commented 6 years ago

修复了 issue #29

主要是覆盖了end方法,设置正确的end offset

    @Override
    public void end() throws IOException {
        offsetAtt.setOffset(totalOffset, totalOffset);
    }
hankcs commented 6 years ago

谢谢!