| Package | Description |
|---|---|
| monad.mmseg |
| Modifier and Type | Method and Description |
|---|---|
CharNode |
Dictionary.head(char ch) |
| Modifier and Type | Method and Description |
|---|---|
Map<Character,CharNode> |
Dictionary.getDict()
仅仅用来观察词库.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
Seg.maxMatch(CharNode[] cns,
int cnIdx,
char[] chs,
int offset)
最大匹配
从 chs[offset] 开始匹配, 同时把 chs[offset] 的字符结点保存在 cns[cnIdx] |
protected void |
Seg.maxMatch(CharNode[] cns,
int cnIdx,
char[] chs,
int offset,
ArrayList<Integer>[] tailLens,
int tailLensIdx)
匹配,同时找出长度.
|
ArrayList<Integer> |
Dictionary.maxMatch(CharNode node,
ArrayList<Integer> tailLens,
char[] sen,
int offset) |
int |
Dictionary.maxMatch(CharNode node,
char[] sen,
int offset) |
int |
Dictionary.search(CharNode node,
char[] sen,
int offset,
int tailLen)
sen[offset] 后 tailLen 长的词是否存在.
|
protected int |
Seg.search(CharNode cn,
char[] chs,
int offset,
int tailLen)
没有数组的复制.
|
Copyright © 2015-2016 Ganshane Developer Team. All Rights Reserved.