| Package | Description |
|---|---|
| org.nlpcn.commons.lang.dic | |
| org.nlpcn.commons.lang.tire | |
| org.nlpcn.commons.lang.tire.library |
| Modifier and Type | Method and Description |
|---|---|
static Forest |
DicManager.getForest(String dicName)
获得一本辞典
|
static Forest |
DicManager.makeForest(String dicName,
BufferedReader br)
构建一个tire书辞典
|
static Forest |
DicManager.remove(String dicName)
从内存中移除
|
| Constructor and Description |
|---|
GetWord(Forest forest,
char[] chars) |
GetWord(Forest forest,
String content) |
| Modifier and Type | Method and Description |
|---|---|
static Forest |
Library.makeForest(BufferedReader br) |
static Forest |
Library.makeForest(InputStream inputStream) |
static Forest |
Library.makeForest(InputStream inputStream,
String encoding) |
static Forest |
Library.makeForest(List<Value> values)
传入value数组.构造树
|
static Forest |
Library.makeForest(String path) |
static Forest |
Library.makeForest(String path,
String encoding) |
| Modifier and Type | Method and Description |
|---|---|
static void |
Library.insertWord(Forest forest,
String temp)
插入一个词
|
static void |
Library.insertWord(Forest forest,
Value value) |
static void |
Library.removeWord(Forest forest,
String word)
删除一个词
|
Copyright © 2017. All rights reserved.