Skip to content

About

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

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

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

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages