Search in sources :

Example 1 with MmsegTokenizer

use of com.jstarcraft.nlp.lucene.mmseg.MmsegTokenizer in project jstarcraft-nlp by HongZhaoHua.

the class MmsegSegmenterTestCase method getSegmenter.

@Override
protected Tokenizer getSegmenter() {
    Dictionary dictionary = Dictionary.getInstance();
    ComplexSeg complex = new ComplexSeg(dictionary);
    // MMSeg mmSeg = new MMSeg(new StringReader(""), complex);
    MmsegTokenizer tokenizer = new MmsegTokenizer(complex);
    return tokenizer;
}
Also used : Dictionary(com.chenlb.mmseg4j.Dictionary) ComplexSeg(com.chenlb.mmseg4j.ComplexSeg) MmsegTokenizer(com.jstarcraft.nlp.lucene.mmseg.MmsegTokenizer)

Aggregations

ComplexSeg (com.chenlb.mmseg4j.ComplexSeg)1 Dictionary (com.chenlb.mmseg4j.Dictionary)1 MmsegTokenizer (com.jstarcraft.nlp.lucene.mmseg.MmsegTokenizer)1