Index
All Classes and Interfaces|All Packages|Serialized Form
A
- addEmit(int) - Method in class com.hankcs.algorithm.State
-
添加一个匹配到的模式串(这个状态对应着这个模式串)
- addEmit(Collection<Integer>) - Method in class com.hankcs.algorithm.State
-
添加一些匹配到的模式串
- addState(Character) - Method in class com.hankcs.algorithm.State
- AhoCorasickDoubleArrayTrie<V> - Class in com.hankcs.algorithm
-
An implementation of Aho Corasick algorithm based on Double Array Trie
- AhoCorasickDoubleArrayTrie() - Constructor for class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie
- AhoCorasickDoubleArrayTrie.Hit<V> - Class in com.hankcs.algorithm
-
A result output
- AhoCorasickDoubleArrayTrie.IHit<V> - Interface in com.hankcs.algorithm
-
Processor handles the output when hit a keyword
- AhoCorasickDoubleArrayTrie.IHitCancellable<V> - Interface in com.hankcs.algorithm
-
Callback that allows to cancel the search process.
- AhoCorasickDoubleArrayTrie.IHitFull<V> - Interface in com.hankcs.algorithm
-
Processor handles the output when hit a keyword, with more detail
B
- base - Variable in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie
-
base array of the Double Array Trie structure
- begin - Variable in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie.Hit
-
the beginning index, inclusive.
- build(Map<String, V>) - Method in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie
-
Build a AhoCorasickDoubleArrayTrie from a map
C
- check - Variable in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie
-
check array of the Double Array Trie structure
- com.hankcs.algorithm - package com.hankcs.algorithm
D
E
- emit() - Method in class com.hankcs.algorithm.State
-
获取这个节点代表的模式串(们)
- end - Variable in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie.Hit
-
the ending index, exclusive.
- exactMatchSearch(String) - Method in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie
-
match exactly by a key
F
- fail - Variable in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie
-
fail table of the Aho Corasick automata
- failure() - Method in class com.hankcs.algorithm.State
-
获取failure状态
- findFirst(String) - Method in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie
-
Search first match in string
G
- get(int) - Method in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie
-
Pick the value by index in value array
Notice that to be more efficiently, this method DO NOT check the parameter - get(String) - Method in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie
-
Get value by a String key, just like a map.get() method
- getDepth() - Method in class com.hankcs.algorithm.State
-
获取节点深度
- getIndex() - Method in class com.hankcs.algorithm.State
- getLargestValueId() - Method in class com.hankcs.algorithm.State
-
获取最大的值
- getStates() - Method in class com.hankcs.algorithm.State
- getSuccess() - Method in class com.hankcs.algorithm.State
-
获取goto表
- getTransitions() - Method in class com.hankcs.algorithm.State
H
- hit(int, int, V) - Method in interface com.hankcs.algorithm.AhoCorasickDoubleArrayTrie.IHit
-
Hit a keyword, you can use some code like text.substring(begin, end) to get the keyword
- hit(int, int, V) - Method in interface com.hankcs.algorithm.AhoCorasickDoubleArrayTrie.IHitCancellable
-
Hit a keyword, you can use some code like text.substring(begin, end) to get the keyword
- hit(int, int, V, int) - Method in interface com.hankcs.algorithm.AhoCorasickDoubleArrayTrie.IHitFull
-
Hit a keyword, you can use some code like text.substring(begin, end) to get the keyword
- Hit(int, int, V) - Constructor for class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie.Hit
I
- isAcceptable() - Method in class com.hankcs.algorithm.State
-
是否是终止状态
L
- l - Variable in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie
-
the length of every key
- load(ObjectInputStream) - Method in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie
-
Load
M
- matches(String) - Method in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie
-
Checks that string contains at least one substring
N
- nextState(Character) - Method in class com.hankcs.algorithm.State
-
按照character转移,根节点转移失败会返回自己(永远不会返回null)
- nextStateIgnoreRootState(Character) - Method in class com.hankcs.algorithm.State
-
按照character转移,任何节点转移失败会返回null
O
- output - Variable in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie
-
output table of the Aho Corasick automata
P
- parseText(char[], AhoCorasickDoubleArrayTrie.IHit<V>) - Method in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie
-
Parse text
- parseText(char[], AhoCorasickDoubleArrayTrie.IHitFull<V>) - Method in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie
-
Parse text
- parseText(CharSequence) - Method in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie
-
Parse text
- parseText(CharSequence, AhoCorasickDoubleArrayTrie.IHit<V>) - Method in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie
-
Parse text
- parseText(CharSequence, AhoCorasickDoubleArrayTrie.IHitCancellable<V>) - Method in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie
-
Parse text
S
- save(ObjectOutputStream) - Method in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie
-
Save
- set(String, V) - Method in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie
-
Update a value corresponding to a key
- setFailure(State, int[]) - Method in class com.hankcs.algorithm.State
-
设置failure状态
- setIndex(int) - Method in class com.hankcs.algorithm.State
- size - Variable in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie
-
the size of base and check array
- size() - Method in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie
-
Get the size of the keywords
- State - Class in com.hankcs.algorithm
-
一个状态有如下几个功能
- State() - Constructor for class com.hankcs.algorithm.State
-
构造深度为0的节点
- State(int) - Constructor for class com.hankcs.algorithm.State
-
构造深度为depth的节点
T
- toString() - Method in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie.Hit
- toString() - Method in class com.hankcs.algorithm.State
- transition(int, char) - Method in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie
-
transition of a state
- transitionWithRoot(int, char) - Method in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie
-
transition of a state, if the state is root and it failed, then returns the root
V
- v - Variable in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie
-
outer value array
- value - Variable in class com.hankcs.algorithm.AhoCorasickDoubleArrayTrie.Hit
-
the value assigned to the keyword
All Classes and Interfaces|All Packages|Serialized Form