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.

Files for text-summarizer, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size text_summarizer-0.0.6.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page