Skip to content

Latest commit

 

History

History
86 lines (61 loc) · 2.09 KB

Readme.md

File metadata and controls

86 lines (61 loc) · 2.09 KB

Text Summarization App

This is a web application for text summarization using various NLP techniques. The app leverages libraries such as SpaCy, NLTK, and Sumy to provide different summarization methods.

Features

  • SpaCy Summarization: Uses SpaCy for text summarization.
  • NLTK Summarization: Uses NLTK for text summarization.
  • Sumy Summarization: Uses Sumy with the LexRank algorithm for text summarization.
  • Web Scraping: Extracts text from web pages for summarization.

Installation

  1. Clone the repository: OR Download the Code

    cd text-summarization-app
  2. Create a virtual environment:

    python -m venv venv
  3. Activate the virtual environment:

    • On Windows:
      venv\Scripts\activate
    • On macOS/Linux:
      source venv/bin/activate
  4. Install the required packages:

    pip install -r requirements.txt
  5. Download SpaCy model:

    python -m spacy download en_core_web_sm

Usage

  1. Run the application:

    python app.py
  2. Open your web browser and go to http://127.0.0.1:5000/.

  3. Enter the text you want to summarize or provide a URL for web scraping.

  4. Choose the summarization method (SpaCy, NLTK, or Sumy) and click on the "Summarize" button.

Screenshots:

Home

Output

Stats

File Structure

  • app.py: The main Flask application file.
  • templates/: Contains the HTML templates for the web app.
  • static/: Contains static files like CSS and JavaScript.
  • requirements.txt: Lists the Python dependencies for the project.

Dependencies

  • Flask
  • SpaCy
  • NLTK
  • Sumy
  • BeautifulSoup4

Connect With Me