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 details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for ahocorasick-python-0.0.4.tar.gz
Algorithm Hash digest
SHA256 b365d2c99b0d4f60616ac8a2b77d7ee7a09eae2fd6cbeee56641866908ef9e18
MD5 7248be030f70927ae8f5ec9f4633d0f4
BLAKE2b-256 018735ce3f1030fb6e18ad9bbae35b92add1afc6390b9a6cac22c2920064a5ab

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