Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Multi-Pattern Matching Algorithms 多模式匹配算法

Project Description

Engling Example:

from multi_pattern_search import MultiPatternSearch

search = MultiPatternSearch() search.add_keyword(“zsp”) search.add_keyword(“my”)

print search.exist(“sdfgasg sadgfa zsp my “)

for k, v in search.count(“my zsp ewtawt my zsp wat233”).iteritems():
print k.decode(‘utf-8’), v

中文演示:

#coding=utf-8

from multi_pattern_search import MultiPatternSearch

search = MultiPatternSearch() search.add_keyword(“张沈鹏”) search.add_keyword(“我是”)

print search.exist(“asdga sddqbq 珍珠饰张沈鹏品 “)

for k, v in search.count(“我是张沈鹏.我是张沈鹏.我是张沈鹏.我是张沈鹏.”).iteritems():
print k.decode(‘utf-8’), v
Release History

Release History

This version
History Node

1.2.3

History Node

1.2.2

History Node

1.2.1dev-r24558

History Node

1.2.0dev-r24554

History Node

1.0.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
multi_pattern_search-1.2.3.tar.gz (20.2 kB) Copy SHA256 Checksum SHA256 Source Apr 25, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting