Class JcsegTokenizerFactory


  • public class JcsegTokenizerFactory
    extends org.apache.lucene.analysis.util.TokenizerFactory
    Jcseg tokenizer factory class for lucene/solr
    Author:
    chenxin
    • Constructor Summary

      Constructors 
      Constructor Description
      JcsegTokenizerFactory​(Map<String,​String> args)
      set the mode arguments in the schema.xml configuration file to change the segment mode for Jcseg
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.lucene.analysis.Tokenizer create​(org.apache.lucene.util.AttributeFactory factory)  
      ADictionary getDict()  
      SegmenterConfig getTaskConfig()  
      • Methods inherited from class org.apache.lucene.analysis.util.TokenizerFactory

        availableTokenizers, create, findSPIName, forName, lookupClass, reloadTokenizers
      • Methods inherited from class org.apache.lucene.analysis.util.AbstractAnalysisFactory

        get, get, get, get, get, getBoolean, getChar, getClassArg, getFloat, getInt, getLines, getLuceneMatchVersion, getOriginalArgs, getPattern, getSet, getSnowballWordSet, getWordSet, isExplicitLuceneMatchVersion, require, require, require, requireBoolean, requireChar, requireFloat, requireInt, setExplicitLuceneMatchVersion, splitAt, splitFileNames
    • Constructor Detail

      • JcsegTokenizerFactory

        public JcsegTokenizerFactory​(Map<String,​String> args)
                              throws IOException
        set the mode arguments in the schema.xml configuration file to change the segment mode for Jcseg
        Throws:
        IOException
        See Also:
        TokenizerFactory(Map)
    • Method Detail

      • create

        public org.apache.lucene.analysis.Tokenizer create​(org.apache.lucene.util.AttributeFactory factory)
        Specified by:
        create in class org.apache.lucene.analysis.util.TokenizerFactory