this project is a aho-corasick automaton implementation by python
Project description
======
ahocorasick-python
======
this project is a aho-corasick automaton implementation by python
Usage
=====
1.simple search
------
.. code-block:: python
import ahocorasick # or import hive
tree=ahocorasick.AhoCorasick("test","book","oo","ok")
tree.search("test book")
2.search result with index
------
.. code-block:: python
import ahocorasick # or import hive
tree=ahocorasick.AhoCorasick("test","book","oo","ok")
tree.search("test book",True)
ahocorasick-python
======
this project is a aho-corasick automaton implementation by python
Usage
=====
1.simple search
------
.. code-block:: python
import ahocorasick # or import hive
tree=ahocorasick.AhoCorasick("test","book","oo","ok")
tree.search("test book")
2.search result with index
------
.. code-block:: python
import ahocorasick # or import hive
tree=ahocorasick.AhoCorasick("test","book","oo","ok")
tree.search("test book",True)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.