Package org.lionsoul.jcseg.analyzer
Class JcsegTokenizerFactory
- java.lang.Object
-
- org.apache.lucene.analysis.util.AbstractAnalysisFactory
-
- org.apache.lucene.analysis.util.TokenizerFactory
-
- org.lionsoul.jcseg.analyzer.JcsegTokenizerFactory
-
public class JcsegTokenizerFactory extends org.apache.lucene.analysis.util.TokenizerFactory
Jcseg tokenizer factory class for lucene/solr- Author:
- chenxin
-
-
Field Summary
Fields Modifier and Type Field Description SegmenterConfig
config
ADictionary
dic
ISegment.Type
type
-
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
-
-
-
-
Field Detail
-
type
public final ISegment.Type type
-
config
public final SegmenterConfig config
-
dic
public final ADictionary dic
-
-
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
-
getTaskConfig
public SegmenterConfig getTaskConfig()
-
getDict
public ADictionary getDict()
-
create
public org.apache.lucene.analysis.Tokenizer create(org.apache.lucene.util.AttributeFactory factory)
- Specified by:
create
in classorg.apache.lucene.analysis.util.TokenizerFactory
-
-