The Text Summarizer is a Python-based application that helps users generate concise summaries from large text documents. It utilizes Natural Language Processing (NLP) techniques to extract the most important information while maintaining coherence.
- Supports summarization of plain text, PDFs, and Word documents (.docx)
- Uses LexRank Algorithm for efficient text summarization
- GUI-based interface using Tkinter for easy interaction
- File Import Option for uploading documents
- Allows users to copy summaries to clipboard
- Saves output as a text file
- Dark Mode & Light Mode Toggle for better usability
- Works completely offline
Ensure you have Python 3.8+ installed.
git clone https://github.com/Burhanali2211/Text-Summarizer.git
cd text-summarizer
Run the following command to install required Python packages:
pip install -r requirements.txt
import nltk
nltk.download('punkt')
nltk.download('stopwords')
python Text_Summarizer.py
- Enter or Upload Text: Paste text or load a file (PDF, DOCX, or TXT).
- Click Summarize: The tool extracts the key points.
- Copy or Save: Copy the summary to the clipboard or save it as a file.
nltk
sumy
pdfplumber
python-docx
PyPDF2
tkinter
- Error: Missing NLTK Data
Run the following in Python:
import nltk nltk.download('punkt') nltk.download('stopwords')
- GUI not opening? Ensure Tkinter is installed (pre-installed with Python).
- Fork the repository
- Create a new branch (
git checkout -b feature-name
) - Commit your changes (
git commit -m 'Added a new feature'
) - Push to the branch (
git push origin feature-name
) - Create a Pull Request
This project is licensed under the MIT License.