A text summarization package
Project description
Text-Summarizer
Text summarization Python library (in progress)
Installation
pip install text-summarizer
Packages needed
- NLTK
- iso-639
- lang-detect
Usage
# Import summarizer
from text_summarizer import summarizer
# Init summarizer parameters
summarizer.text = input_text
summarizer.algo = Summ.TEXT_RANK # Summ.TEXT_RANK is equals to "textrank"
summarizer.percentage = 0.25
# Summarize with summarize() (returns a paragraph) or schematize() (returns a schema)
summarizer.summarize()
summarizer.schematize()
# You can also init the parameters in the summarize() / schematize() call
summarizer.summarize(text_to_be_summarized)
summarizer.summarize(text_to_be_summarized, "textrank", 0.5)
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
text_summarizer-0.0.4.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for text_summarizer-0.0.4-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb675748243f313fd3264d5f1cc5139d322b7c8dd86b1f6375b089f6835d25b6 |
|
MD5 | 13352512484992d821c910b592c95003 |
|
BLAKE2b-256 | f30a90dde731cc79281d4f02d3421dbae1d26c8a72564c01d7babd41e685c1e2 |