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.

Files for ahocorasick-python, version 0.0.6
Filename, size & hash File type Python version Upload date
ahocorasick-python-0.0.6.tar.gz (2.4 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page