Skip to content

The project is a Python implementation of a Text Summarizer. It uses various natural language processing (NLP) techniques to generate a summary of a given text.

Notifications You must be signed in to change notification settings

Logahn/text-summarizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Text Summarizer

This script is a Python implementation of a Text Summarizer. It automatically generates a summary of a given text.

Libraries used

  • Rake: A Python implementation of the Rapid Automatic Keyword Extraction algorithm.
  • WordCloud: A Python library for generating word clouds.
  • NumPy: A Python library for the computation with arrays and matrices.
  • Pandas: A Python library for data manipulation and analysis.
  • Matplotlib: A Python library for creating visualizations in Python.
  • NLTK: A Python library for natural language processing.

Text Data Preparation

The script loads the text data from a file sample.txt and generates a word cloud image of the text.

Data Pre-processing

The script performs the following pre-processing steps on the text data:

  1. Elimination of punctuations
  2. Elimination of stopwords
  3. Creation of word frequency

Text Summarization

The script generates a summary of the text using the following steps:

  1. Creation of sentence frequency
  2. Selection of top sentences based on sentence score

How to use

To use this script, you need to have the following libraries installed:

  • Rake
  • WordCloud
  • NumPy
  • Pandas
  • Matplotlib
  • NLTK

You also need to provide the text data in a file sample.txt.

Run the script to generate the summary of the text. The summary will be displayed in the console.

Link

Google colab file can be found here

About

The project is a Python implementation of a Text Summarizer. It uses various natural language processing (NLP) techniques to generate a summary of a given text.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages