| Package | Description |
|---|---|
| org.lionsoul.jcseg.tokenizer | |
| org.lionsoul.jcseg.tokenizer.core | |
| org.lionsoul.jcseg.util |
| 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 |
DelimiterSeg.getDic()
get the current dictionary instance
|
ADictionary |
DetectSeg.getDict()
get the current dictionary instance
|
ADictionary |
ASegment.getDict()
get the current dictionary instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DelimiterSeg.setDic(ADictionary dic)
set the current dictionary
|
void |
DetectSeg.setDict(ADictionary dic)
set the current dictionary instance
|
void |
ASegment.setDict(ADictionary dic)
set the current dictionary
|
| 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
|
static boolean |
ADictionary.resetPrefixLength(JcsegTaskConfig config,
ADictionary dic,
int mixLength)
check and reset the value of
mixPrefixLength |
static boolean |
ADictionary.resetSuffixLength(JcsegTaskConfig config,
ADictionary dic,
int mixLength)
check and reset the value of the
mixSuffixLength |
| Modifier and Type | Method and Description |
|---|---|
static ADictionary |
DictionaryFactory.createDictionary(Class<? extends ADictionary> _class,
Class<?>[] paramType,
Object[] args)
create a new ADictionary instance
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
EntityFormat.isUrlAddress(String str,
ADictionary dic)
check if the specified string is an URL address or not
|
Copyright © 2017. All Rights Reserved.