A fast Python implementation of ac auto mechine.
Project description
A fast Python implementation of Ac Auto Mechine
Installation
To install:
$ pip install acAutoMechine
Quickstart
from acAutoMechine import Ac_mechine
### usage one:
actree = Ac_mechine()
actree.add_keys('he')
actree.add_keys('her')
actree.add_keys('here')
actree.build_actree()
### all match
print(actree.match("he here her"))
### long match
print(actree.match_long("he here her"))
### all match with match path
print(actree.match("he here her", True))
### long match with match path
print(actree.match_long("he here her", 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
acAutoMechine-0.0.3.tar.gz
(3.6 kB
view hashes)