This project is a simple Flask application that summarizes user-input text. It takes text input, performs summarization, and displays the result on the screen. When the page is refreshed, the summary is cleared. Users can also reset the summary by clicking the "Reset" button.
- Accepts text input from the user
- Analyzes the text and selects key sentences
- Displays the summarized text on the screen
- Allows users to clear the summary with a "Reset" button
- The summary disappears when the page is refreshed
To run this project, you need to have the following installed on your system:
- Python 3
- Flask
- NLTK (for Natural Language Processing)
- Clone or download the repository:
git clone https://github.com/username/text-summarization-app.git cd text-summarization-app - Install the required dependencies:
pip install flask nltk
- Download NLTK datasets:
import nltk nltk.download('punkt') nltk.download('stopwords')
- Run the application:
python app.py
- Open in browser:
http://127.0.0.1:5000/
- Enter text into the input box.
- Click the "Summarize" button.
- The summarized text will be displayed on the page.
- Click the "Reset" button to clear the summary.
- Refreshing the page will automatically remove the summary.
text-summarization-app/
│-- app.py # Flask application
│-- templates/
│ ├── index.html # User interface
│-- README.md # Project documentation
You can contribute to this project by forking the repository and submitting pull requests. If you want to add new features, follow these steps:
- Fork the repository and clone it to your account.
- Create a new branch:
git checkout -b new-feature
- Make your changes and commit:
git commit -m "Added new feature" - Push to GitHub:
git push origin new-feature
- Create a pull request.