GithubHelp home page GithubHelp logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 14, 2024
http://lucene.apache.org/core/4_6_0/changes/Changes.html#v4.6.0.changes_in_backw
ards_compatibility_policy

LUCENE-5235: Sub classes of Tokenizer have to call super.reset() when 
implementing reset(). Otherwise the consumer will get an IllegalStateException 
because the Reader is not correctly assigned. It is important to never change 
the "input" field on Tokenizer without using setReader(). The "input" field 
must not be used outside reset(), incrementToken(), or end() - especially not 
in the constructor. 

MMSegTokenizer.java

public void reset() throws IOException {
        //lucene 4.0
        //org.apache.lucene.analysis.Tokenizer.setReader(Reader)
        //setReader 自动被调用, input 自动被设置。
        super.reset();   //加这一句
        mmSeg.reset(input);
    }

重新打包
mvn package 

Original comment by [email protected] on 12 Dec 2013 at 1:06

from mmseg4j.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 14, 2024
Thanks a lot.

Original comment by [email protected] on 13 Dec 2013 at 3:31

from mmseg4j.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 14, 2024
谢谢,很严谨有效的回答

Original comment by [email protected] on 13 Jan 2014 at 3:04

from mmseg4j.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 14, 2024
能否请哪位把重新打包后的包上传上来,我这里因为种种原��
�,没法打包,多谢多谢

Original comment by [email protected] on 13 Feb 2014 at 10:09

from mmseg4j.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 14, 2024
请问你们在修改代码的时候,代码是从哪儿来的?!我没找��
�源代码在哪儿啊?!我也是遇见了上边这个问题。

Original comment by [email protected] on 18 Feb 2014 at 8:44

from mmseg4j.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 14, 2024
其實我也沒有重包,直接放棄 4.6 回去用 4.5 了 XD

Original comment by [email protected] on 18 Feb 2014 at 10:34

from mmseg4j.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 14, 2024
打个包放到maven上面把

Original comment by [email protected] on 13 Mar 2014 at 11:39

from mmseg4j.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 14, 2024
使用 2.0.0

参考 https://github.com/chenlb/mmseg4j-solr

Original comment by [email protected] on 19 May 2014 at 11:24

  • Changed state: Fixed

from mmseg4j.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.