Module for automatic summarization of text documents and HTML pages.
Actively maintained. Last release 8 days ago, commits in 13 of the last 26 weeks. A safe choice.
pip install sumyAutomatic text summarizer
Simple library and command line utility for extracting summary from HTML pages or plain texts. The package also contains simple evaluation framework for text summaries. Implemented summarization methods are described in the documentation. I also maintain a list of alternative implementations of the summarizers in various programming languages.
Is my natural language supported?
There is a good chance it is. But if not it is not too hard to add it.
Installation
Make sure you have Python 3.8+ installed.
Using uv (recommended)
uv is a modern, fast Python package installer and resolver.
$ uv pip install sumy
$ uv pip install git+https://github.com/miso-belica/sumy.git # for the fresh version
Using pip
$ pip install sumy
$ pip install git+git://github.com/miso-belica/sumy.git # for the fresh version
For development
If you want to contribute or modify the code:
$ git clone https://github.com/miso-belica/sumy.git
$ cd sumy
$ uv sync --all-extras # Install dependencies (dev group included automatically)
$ uv run pytest # Run tests
$ uv run sumy --help # Run sumy using uv
Usage
Thanks to some good soul out there, the easiest way to try sumy is in your browser at https://huggingface.co/spaces/issam9/sumy_space
Sumy contains command line utility for quick summarization of documents.