Text Summarizer A Python application that summarizes text using the TextRank algorithm.
Features Automatic text summarization based on TextRank algorithm Customizable number of sentences in the summary User-friendly GUI with light and dark themes Word count and compression ratio statistics File import/export capabilities Requirements Python 3.x Required packages: nltk sklearn networkx tkinter (usually included with Python) Installation
git clone https://github.com/yourusername/Text-Summarizer.git cd Text-Summarizer
pip install -r requirements.txt Usage Run the application by executing:
python gui.py Enter text in the input area or load it from a file Select the number of sentences for the summary Click "Summarize" to generate a summary Save the result to a file if needed How it Works The summarization engine uses a simplified implementation of the TextRank algorithm:
Splits the text into sentences Creates a similarity matrix using TF-IDF representation Builds a graph where sentences are nodes and similarities are edges Applies PageRank algorithm to rank sentences by importance Extracts the top N sentences while maintaining original order License MIT License