| Package | Description |
|---|---|
| com.hankcs.hanlp.algorithm.ahocorasick.trie |
| Modifier and Type | Method and Description |
|---|---|
State |
State.addState(Character character) |
State |
State.failure()
获取failure状态
|
State |
State.nextState(Character character)
按照character转移,根节点转移失败会返回自己(永远不会返回null)
|
State |
State.nextStateIgnoreRootState(Character character)
按照character转移,任何节点转移失败会返回null
|
| Modifier and Type | Method and Description |
|---|---|
Collection<State> |
State.getStates() |
| Modifier and Type | Method and Description |
|---|---|
void |
Trie.IWalker.meet(String path,
State state)
遇到了一个节点
|
void |
State.setFailure(State failState)
设置failure状态
|
Copyright © 2014–2021 码农场. All rights reserved.