hankcs / hankcs/AhoCorasickDoubleArrayTrie

子类继承 AhoCorasickDoubleArrayTrie 实现匹配时忽略特定字符

Open
#51 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1k
Forks
299
PR merge metrics
No merged PRs in 30d

Description

请问子类继承 AhoCorasickDoubleArrayTrie,能否重写某些方法,实现匹配时忽略一些特定字符,例如标点符号?

```kotlin
val acdat = CustomizeAhoCorasickDoubleArrayTrie()
acdat.build(mapOf("hello" to "hello"))

val wordList = acdat.parseText("hel,l.o") // omit , . char, matched
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.