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!

Data-structure for keyword searches

Project Description

The KeywordTree is a data structure designed to speed up the process of searching for words within a large group of text. Given a large set of keywords, a data structure is constructed to help speed up the process of searching. Much like any other tree-based structure, a branch is constructed of the longest consecutive substring similarly shared between any of its leaves. When searching, this allows us to “prune” any branches that do not match any of the text we’re searching in, drastically speeding up the process. The purpose is to spend a 1-time cost constructing the tree, then utilizing its structure to boost searching performance.

This library has the ability to define individual keyword attributes to use or not use regular expressions, and to preserve capitalization or ignore it. Since the biggest cost is in build-time, you can also export and import a prebuilt tree. You can add or remove keywords from an existing tree, and limit how much memory the tree can consume.

Please see my project’s page for installation details, examples, and benchmarking results.

Release History

Release History

This version
History Node

0.4.2

History Node

0.4.1

History Node

0.4.0

History Node

0.3.61

History Node

0.3.7

History Node

0.3.6

History Node

0.3.5

History Node

0.3.4

History Node

0.3.3

History Node

0.3.2

History Node

0.3.1

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
KeywordTree-0.4.2.tar.gz (19.1 kB) Copy SHA256 Checksum SHA256 Source Nov 5, 2015

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