| Package | Description |
|---|---|
| org.lionsoul.jcseg.tokenizer | |
| org.lionsoul.jcseg.tokenizer.core |
| Modifier and Type | Class and Description |
|---|---|
class |
Dictionary
Dictionary class
|
| Modifier and Type | Field and Description |
|---|---|
protected ADictionary |
ASegment.dic
the dictionary and task configuration instance
|
| Modifier and Type | Method and Description |
|---|---|
ADictionary |
DetectSeg.getDict()
get the current dictionary instance
|
ADictionary |
ASegment.getDict()
get the current dictionary instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DetectSeg.setDict(ADictionary dic)
set the current dictionary instance
|
void |
ASegment.setDict(ADictionary dic)
set the dictionary of the current tokenizer.
|
| Constructor and Description |
|---|
ASegment(JcsegTaskConfig config,
ADictionary dic) |
ASegment(Reader input,
JcsegTaskConfig config,
ADictionary dic)
initialize the segment
|
ComplexSeg(JcsegTaskConfig config,
ADictionary dic) |
ComplexSeg(Reader input,
JcsegTaskConfig config,
ADictionary dic) |
DetectSeg(JcsegTaskConfig config,
ADictionary dic)
method to create the new ISegment
|
DetectSeg(Reader input,
JcsegTaskConfig config,
ADictionary dic)
method to create a new ISegment
|
SearchSeg(JcsegTaskConfig config,
ADictionary dic) |
SearchSeg(Reader input,
JcsegTaskConfig config,
ADictionary dic) |
SimpleSeg(JcsegTaskConfig config,
ADictionary dic) |
SimpleSeg(Reader input,
JcsegTaskConfig config,
ADictionary dic) |
| Modifier and Type | Method and Description |
|---|---|
static ADictionary |
DictionaryFactory.createDefaultDictionary(JcsegTaskConfig config)
create the ADictionary according to the JcsegTaskConfig
check and load the lexicon by default
|
static ADictionary |
DictionaryFactory.createDefaultDictionary(JcsegTaskConfig config,
boolean loadDic)
create the ADictionary according to the JcsegTaskConfig
|
static ADictionary |
DictionaryFactory.createDefaultDictionary(JcsegTaskConfig config,
boolean sync,
boolean loadDic)
create a default ADictionary instance:
1.
|
static ADictionary |
DictionaryFactory.createDictionary(Class<? extends ADictionary> _class,
Class<?>[] paramType,
Object[] args)
create a new ADictionary instance
|
static ADictionary |
DictionaryFactory.createSingletonDictionary(JcsegTaskConfig config)
create a singleton ADictionary object according to the JcsegTaskConfig
check and load the lexicon by default
|
static ADictionary |
DictionaryFactory.createSingletonDictionary(JcsegTaskConfig config,
boolean loadDic)
create a singleton ADictionary object according to the JcsegTaskConfig
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ADictionary.loadWords(JcsegTaskConfig config,
ADictionary dic,
File file)
load all the words in the specified lexicon file into the dictionary
|
static void |
ADictionary.loadWords(JcsegTaskConfig config,
ADictionary dic,
InputStream is)
load words from a InputStream
|
static void |
ADictionary.loadWords(JcsegTaskConfig config,
ADictionary dic,
String file)
load all the words from a specified lexicon file path
|
| Modifier and Type | Method and Description |
|---|---|
static ADictionary |
DictionaryFactory.createDictionary(Class<? extends ADictionary> _class,
Class<?>[] paramType,
Object[] args)
create a new ADictionary instance
|
Copyright © 2016. All Rights Reserved.