sumbert: A BERT-based summarizer with a frindly API
Project description
Abstractive BERT-based Text Summarizer
A BERT-based summarizer, centered towards a simple API: some text in, a summary out, both strings. Also at pypi.org as package sumbert
.
Installation:
pip3 install sumbert
or if you want ot play with the code, after cloning this, and going into the resulting folder, install as an editable package with:
pip3 install -e .
Usage:
$ python3 -i
>>> from sumbert import summarize
>>>
>>> text= """... your favorite story ..."""
>>> print(summarize(text))
This package is designed as a simple API for an otherwise fairy intricate set of components.
Credits:
The code is derived from the bertabs
submodule in the HuggingFace transformers package at
https://github.com/huggingface/transformers
which credits the abstractive summarization described in the article Text Summarization with Pretrained Encoders by Yang Liu and Mirella Lapata.
The original code described in the article can be found on the Yang Liu's github repository.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sumbert-1.0.0.tar.gz
.
File metadata
- Download URL: sumbert-1.0.0.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76df4cd35b644ce1161617ae9d5d89a01321cd3b0707526d59702f0b57a7aefc |
|
MD5 | a2dd7e50178cbaa4ad7770ef74c7c435 |
|
BLAKE2b-256 | 3c384ac232db7fd2a6c3956a7a3316147e205256f508693b2730c954f8b7309d |
File details
Details for the file sumbert-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: sumbert-1.0.0-py3-none-any.whl
- Upload date:
- Size: 21.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0031a7d06f4af9b0c1ef75d73152d1aa6e5bca5bf66c2b425d34204fd4dcaffd |
|
MD5 | 6275f9b053c4b9d751504d1ccda25384 |
|
BLAKE2b-256 | 91373f7817796ea9a7d3c7f31b171ee4e27ca0f1463e13d99d195cf2caf37b26 |