Skip to main content

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ahocorasick-python-0.0.3.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file ahocorasick-python-0.0.3.tar.gz.

File metadata

File hashes

Hashes for ahocorasick-python-0.0.3.tar.gz
Algorithm Hash digest
SHA256 72312b76d01ed70bfb653163e597917de4828f130220703b49c2095b48da360e
MD5 14c5d1ea40407b6c5e71b5a90376d610
BLAKE2b-256 3e3169302b5927dfd75177cdca0274a1f4751706644d2ea0c14bbebde96c70c5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page