Skip to content

gphmath/ahocorasick-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ahocorasick-python

this project is a aho-corasick automaton implementation by python

Usage

1.simple search

import  ahocorasick    # or import hive
tree=ahocorasick.AhoCorasick("test","book","oo","ok")
tree.search("test book")

2.search result with index

import  ahocorasick    # or import hive
tree=ahocorasick.AhoCorasick("test","book","oo","ok")
tree.search("test book",True)

About

AC自动机python的实现,并进行了优化。 主要修复了 查询不准确的问题。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%