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.4.tar.gz (2.3 kB view hashes)

Uploaded Source

Supported by

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