Skip to content

Aho-Corasick(AC自动机)的Delphi/Pascal实现,支持Unicode;结合双数组的脏词过滤

Notifications You must be signed in to change notification settings

jinnblue/aho-corasick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aho-corasick

Aho-Corasick的Delphi实现,支持Unicode,加入双数组模式

关于

fork自https://github.com/hankcs/aho-corasick
我重新用Delphi做了实现,并自己实现了一个AC自动机与双数组模式结合的脏词过滤。支持Unicode。

用法

具体用法可参考/Test/文件夹下的测试用例。
因为用的是最新版Delphi 10.1 Berlin;低版本可能需要做修改。
单元文件内都有详细注释,其他就不多说了。

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Aho-Corasick(AC自动机)的Delphi/Pascal实现,支持Unicode;结合双数组的脏词过滤

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages