public class MMSegAnalyzer
extends org.apache.lucene.analysis.Analyzer
SimpleAnalyzer}, {@link ComplexAnalyzer}, {@link MaxWordAnalyzer}| Modifier and Type | Field and Description |
|---|---|
protected Dictionary |
dic |
| Constructor and Description |
|---|
MMSegAnalyzer() |
MMSegAnalyzer(Dictionary dic) |
MMSegAnalyzer(File path) |
MMSegAnalyzer(String path) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents |
createComponents(String fieldName) |
Dictionary |
getDict() |
protected Seg |
newSeg() |
protected Dictionary dic
public MMSegAnalyzer()
Dictionary.getInstance()public MMSegAnalyzer(String path)
path - 词库路径Dictionary.getInstance(String)public MMSegAnalyzer(File path)
path - 词库目录Dictionary.getInstance(File)public MMSegAnalyzer(Dictionary dic)
protected Seg newSeg()
public Dictionary getDict()
protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents createComponents(String fieldName)
createComponents in class org.apache.lucene.analysis.AnalyzerCopyright © 2015-2016 Ganshane Developer Team. All Rights Reserved.