Package com.hankcs.algorithm
Interface AhoCorasickDoubleArrayTrie.IHitFull<V>
-
- Enclosing class:
- AhoCorasickDoubleArrayTrie<V>
public static interface AhoCorasickDoubleArrayTrie.IHitFull<V>Processor handles the output when hit a keyword, with more detail
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhit(int begin, int end, V value, int index)Hit a keyword, you can use some code like text.substring(begin, end) to get the keyword
-
-
-
Method Detail
-
hit
void hit(int begin, int end, V value, int index)Hit a keyword, you can use some code like text.substring(begin, end) to get the keyword- Parameters:
begin- the beginning index, inclusive.end- the ending index, exclusive.value- the value assigned to the keywordindex- the index of the value assigned to the keyword, you can use the integer as a perfect hash value
-
-