| Package | Description |
|---|---|
| org.lionsoul.jcseg.tokenizer | |
| org.lionsoul.jcseg.tokenizer.core |
| Modifier and Type | Field and Description |
|---|---|
protected JcsegTaskConfig |
ASegment.config |
| Modifier and Type | Method and Description |
|---|---|
JcsegTaskConfig |
DetectSeg.getConfig()
get the current task config instance
|
JcsegTaskConfig |
ASegment.getConfig()
get the current task configuration instance.
|
JcsegTaskConfig |
DelimiterSeg.getConfig()
get the current JcsegTaskConfig instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
DetectSeg.setConfig(JcsegTaskConfig config)
set the current task config
|
void |
ASegment.setConfig(JcsegTaskConfig config)
set the current task configuration instance.
|
void |
DelimiterSeg.setConfig(JcsegTaskConfig config)
set the current configuration
|
| Modifier and Type | Field and Description |
|---|---|
protected JcsegTaskConfig |
ADictionary.config |
| Modifier and Type | Method and Description |
|---|---|
JcsegTaskConfig |
JcsegTaskConfig.clone()
rewrite the clone method
|
JcsegTaskConfig |
ADictionary.getConfig() |
| 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.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
|
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
|
static boolean |
ADictionary.resetPrefixLength(JcsegTaskConfig config,
ADictionary dic,
int mixLength)
check and reset the value of
ADictionary.mixPrefixLength |
static boolean |
ADictionary.resetSuffixLength(JcsegTaskConfig config,
ADictionary dic,
int mixLength)
check and reset the value of the
ADictionary.mixSuffixLength |
void |
ADictionary.setConfig(JcsegTaskConfig config) |
| Constructor and Description |
|---|
ADictionary(JcsegTaskConfig config,
Boolean sync)
initialize the ADictionary
|
Copyright © 2017. All Rights Reserved.