Skip to main content

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)

More info about Text summarization

Project details


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.6.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file text_summarizer-0.0.6.tar.gz.

File metadata

  • Download URL: text_summarizer-0.0.6.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for text_summarizer-0.0.6.tar.gz
Algorithm Hash digest
SHA256 4958e254553bce9adfd8b2cbe6b18af907190e8d5de84273e492e45b31202a84
MD5 b9053261330285f31c248c6d0875fdd9
BLAKE2b-256 cab71e5cbe26751fbc53c81283c41dcc832709c199e41be54342e80f1e4549eb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page