"Pattern" bundles a diverse range of Python functionality for working with text. It contains tools for web data mining such as a uniform API for web services (Google, Yahoo, Bing, Twitter, Wikipedia, Flickr, Facebook, RSS), a HTML DOM parser, web crawler and a PDF parser. It has wrappers for SQLite and MySQL databases, and a Datasheet class for working with CSV-files. It has a transformation-based tagger/chunker for English and Dutch, sentiment lexicons, a WordNet interface, and an n-gram search algorithm. It also has algorithms for tf-idf, cosine similarity, LSA, k-means and hierarchical clustering, Naive Bayes, KNN and SVM classifiers. It has a helper module for writing HTML canvas graphics in the web browser (no plugins needed), and tools for directed graphs, graph centrality, graph partitioning and spring-based graph visualization.

The package is well-documented at:
http://www.clips.ua.ac.be/pages/pattern

It comes bundled with 30+ example scripts and 350+ unit tests.

Please let us know if you find any bugs!

Changes to previous version:

Small bug fixes in overall + performance improvements.

Module pattern.web: updated to the new Bing API (Bing API has is paid service now).

Module pattern.en: now includes Norvig's spell checking algorithm.

Module pattern.de: new German tagger/chunker, courtesy of Schneider & Volk (1998) who kindly agreed to release their work in Pattern under BSD.