Skip to main content

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)

More info about Text summarization

Release files for text-summarizer 0.0.6

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

Source distribution (sdist)

Source distribution for text-summarizer 0.0.6
File Size Uploaded
text_summarizer-0.0.6.tar.gz 4.2 kB Details

Release files / text_summarizer-0.0.6.tar.gz

Download URL text_summarizer-0.0.6.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4958e254553bce9adfd8b2cbe6b18af907190e8d5de84273e492e45b31202a84
BLAKE2b-256 checksum
How to use checksums
cab71e5cbe26751fbc53c81283c41dcc832709c199e41be54342e80f1e4549eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.2

Release history Release notifications | RSS feed

This release

0.0.6 This release

1 release file

0.0.5

1 release file

0.0.4

2 release files

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