Pattern is a web mining module for Python that bundles tools for scraping, natural language processing, machine learning, network analysis, and visualization.
Pattern addresses the need to combine multiple data processing tasks—from collecting web data through classification and analysis—in a single integrated toolkit. It provides web scrapers and parsers for extracting data from services like Google, Twitter, and Wikipedia; natural language processing components including part-of-speech taggers and sentiment analysis; machine learning algorithms such as KNN, SVM, and Perceptron classifiers; and network analysis tools for computing graph centrality and creating visualizations. The toolkit is designed around a workflow where raw web data flows through linguistic processing into vector representations suitable for machine learning.
Developers should be aware that this project is no longer maintained and will not receive updates, bug fixes, or security patches. It is suitable for educational purposes, prototyping, or legacy system maintenance where the existing functionality meets requirements. The tool is well-documented with over 350 unit tests and includes numerous examples demonstrating typical workflows. Anyone adopting it should treat it as a snapshot of functionality rather than an actively developed library and should evaluate whether its capabilities align with current project needs without expecting ongoing support.
The project is archived and no longer accepts issues or pull requests for review.