| Modifier and Type | Method and Description |
|---|---|
static <T> DoubleArrayTrie<T> |
DoubleArrayTrie.unSerialize(String path) |
| Modifier and Type | Field and Description |
|---|---|
DoubleArrayTrie<CoreDictionary.Attribute> |
DynamicCustomDictionary.dat
用于储存文件中的词条
|
static DoubleArrayTrie<CoreDictionary.Attribute> |
CoreDictionary.trie |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
CustomDictionary.loadDat(String path,
DoubleArrayTrie<CoreDictionary.Attribute> dat) |
static boolean |
DynamicCustomDictionary.loadDat(String path,
DoubleArrayTrie<CoreDictionary.Attribute> dat) |
static boolean |
CustomDictionary.loadDat(String path,
String[] customDicPath,
DoubleArrayTrie<CoreDictionary.Attribute> dat)
从磁盘加载双数组
|
static boolean |
DynamicCustomDictionary.loadDat(String path,
String[] customDicPath,
DoubleArrayTrie<CoreDictionary.Attribute> dat)
从磁盘加载双数组
|
static boolean |
CustomDictionary.loadMainDictionary(String mainPath,
String[] path,
DoubleArrayTrie<CoreDictionary.Attribute> dat,
boolean isCache)
加载词典
|
static boolean |
DynamicCustomDictionary.loadMainDictionary(String mainPath,
String[] path,
DoubleArrayTrie<CoreDictionary.Attribute> dat,
boolean isCache)
加载词典
|
| Constructor and Description |
|---|
DynamicCustomDictionary(DoubleArrayTrie<CoreDictionary.Attribute> dat,
BinTrie<CoreDictionary.Attribute> trie,
String[] path)
使用高级数据结构构造词典对象,并加载指定路径的词典
|
| Constructor and Description |
|---|
Searcher(char[] c,
DoubleArrayTrie<Character> trie) |
Searcher(String text,
DoubleArrayTrie<Character> trie) |
| Modifier and Type | Method and Description |
|---|---|
static BaseSearcher |
PinyinDictionary.getSearcher(char[] charArray,
DoubleArrayTrie<Pinyin[]> trie) |
| Constructor and Description |
|---|
Searcher(char[] c,
DoubleArrayTrie<Pinyin[]> trie) |
Searcher(String text,
DoubleArrayTrie<Pinyin[]> trie) |
| Modifier and Type | Method and Description |
|---|---|
static BaseSearcher |
BaseChineseDictionary.getSearcher(char[] charArray,
DoubleArrayTrie<String> trie) |
protected static String |
BaseChineseDictionary.segLongest(char[] charArray,
DoubleArrayTrie<String> trie) |
| Constructor and Description |
|---|
Searcher(char[] c,
DoubleArrayTrie<String> trie) |
Searcher(String text,
DoubleArrayTrie<String> trie) |
| Modifier and Type | Method and Description |
|---|---|
protected List<Vertex> |
Segment.combineByCustomDictionary(List<Vertex> vertexList,
DoubleArrayTrie<CoreDictionary.Attribute> dat)
使用用户词典合并粗分结果
|
protected List<Vertex> |
Segment.combineByCustomDictionary(List<Vertex> vertexList,
DoubleArrayTrie<CoreDictionary.Attribute> dat,
WordNet wordNetAll)
使用用户词典合并粗分结果,并将用户词语收集到全词图中
|
| Modifier and Type | Field and Description |
|---|---|
DoubleArrayTrie<CoreDictionary.Attribute> |
DoubleArrayTrieSegment.trie
分词用到的trie树,可以直接赋值为自己的trie树(赋值操作不保证线程安全)
|
| Constructor and Description |
|---|
DoubleArrayTrieSegment(DoubleArrayTrie<CoreDictionary.Attribute> trie)
根据自己的trie树构造分词器
|
| Modifier and Type | Method and Description |
|---|---|
DoubleArrayTrie<CoreDictionary.Attribute> |
ViterbiSegment.getDat() |
| Modifier and Type | Method and Description |
|---|---|
void |
ViterbiSegment.setDat(DoubleArrayTrie<CoreDictionary.Attribute> dat) |
Copyright © 2014–2021 码农场. All rights reserved.