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.
Source Distribution
File details
Details for the file ahocorasick-python-0.0.3.tar.gz.
File metadata
- Download URL: ahocorasick-python-0.0.3.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72312b76d01ed70bfb653163e597917de4828f130220703b49c2095b48da360e
|
|
| MD5 |
14c5d1ea40407b6c5e71b5a90376d610
|
|
| BLAKE2b-256 |
3e3169302b5927dfd75177cdca0274a1f4751706644d2ea0c14bbebde96c70c5
|