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.
- 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.
-
Clone the repository: OR Download the Code
cd text-summarization-app
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install the required packages:
pip install -r requirements.txt
-
Download SpaCy model:
python -m spacy download en_core_web_sm
-
Run the application:
python app.py
-
Open your web browser and go to
http://127.0.0.1:5000/
. -
Enter the text you want to summarize or provide a URL for web scraping.
-
Choose the summarization method (SpaCy, NLTK, or Sumy) and click on the "Summarize" button.
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.
- Flask
- SpaCy
- NLTK
- Sumy
- BeautifulSoup4