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

A text summarizer

Project Description

Summarizer [![Build Status](](

Summarizer is an automatic summarization algorithm.


* Python 2.7, 3.3, 3.4, or 3.5

Install it

pip install summarizer

Use it

from summarizer import summarize
summarize(title, text)


Summarizer.summarize(title, text, count=5, summarizer=Summarizer())

* title: The title of the article
* text: The actual text of the article
* count: The number of summarized sentences to return
* summarizer: The class instance that will do all the work


All contributions must be accompanied by some form of unit testing



* Added python 3.5 to travis
* Moved `SentenceTokenizer` to its own file
* Added `dept` to `abbrev_types`


* [FIX] Sgt, Gov, and No abbreviations accounted for

v0.0.5 10-01-2015

* [FIX] Python2.7 unicode errors
* Updated PunktLanguageVars to detect special quotation marks

v0.0.4 10-01-2015

* [FIX] PYPI didn't pick up the new training data in JSON format

v0.0.3 10-01-2015

* [FIX] Tokenizer would think a custom abbreviation, F.B.I., was a sentence break
* [FIX] Added sanitizer module to preprocess text before summarizing it
* [TESTS] Added ability to pull valid tokenized articles from
and test that the new tokenizer is still valid

v0.0.2 08-26-2015

* PYPI not picking up data files

v0.0.1 08-26-2015

* Added
* Added \_\_version\_\_
* Added unit tests

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(280.1 kB) Copy SHA256 Hash SHA256
Source None Nov 26, 2015

Supported By

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 Google Google Cloud Servers