Skip to main content
Summarizer [![Build Status](https://travis-ci.org/michigan-com/summarizer.svg)](https://travis-ci.org/michigan-com/summarizer)
==========

Summarizer is an automatic summarization algorithm.

Requirements
------------

* Python 2.7, 3.3, 3.4, or 3.5
* NLTK

Install it
----------

```
pip install summarizer
```

Use it
------

```
from summarizer import summarize
summarize(title, text)
```

Documentation
-------------

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

Contributing
------------

All contributions must be accompanied by some form of unit testing




CHANGES
=======

v0.0.7
------

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

v0.0.6
------

* [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 brevity.detroitnow.io
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 setup.py
* Added \_\_version\_\_
* Added unit tests

Metadata

Release files for summarizer 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for summarizer 0.0.7
File Size Uploaded Provenance Actions
summarizer-0.0.7.tar.gz 280.1 kB Without provenance Details for summarizer-0.0.7.tar.gz

Release files / summarizer-0.0.7.tar.gz

Download URL summarizer-0.0.7.tar.gz
Size 280.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e01b334cc238910af83f1d776a19e80f228f90cd47dff6361aad9a3cd1a2cf9f
BLAKE2b-256 checksum
How to use checksums
deca5f5934b4421e928cac8f916e358310486d6e940b52dacc3857b60ba88634
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for summarizer 0.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page