Skip to content

A Streamlit-powered NLP application that efficiently summarizes large text documents using extractive (TextRank) and abstractive (BART) techniques. Users can input news articles, reports, or essays and receive a refined summary tailored to their needs.

License

Notifications You must be signed in to change notification settings

akasha456/TextSummarizer-NLP-based-Text-Summarization-Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

✂️ TextSummarizer – Extractive & Abstractive Text Summarization Tool

License
Python
NLP
Status

📚 A Streamlit-based NLP app that summarizes large text documents using both extractive (TextRank) and abstractive (BART) techniques.


🚀 Features

  • ✂️ Extractive Summarization using TextRank algorithm via Sumy
  • 🧠 Abstractive Summarization using Hugging Face's BART model
  • 💡 Intuitive Streamlit UI for input and output
  • 📝 Handles custom inputs such as news articles, reports, and essays
  • 📏 Adjustable summary length for tailored outputs

📌 Technologies Used

Component Tool/Library
Extractive Model TextRank (Sumy)
Abstractive Model BART (facebook/bart-large-cnn)
NLP Utilities NLTK, Transformers
Web UI Streamlit
Language Python 3.10+

⚙️ Installation

git clone https://github.com/akasha456/TextSummarizer-NLP-based-Text-Summarization-Tool
cd TextSummarizer-NLP-based-Text-Summarization-Tool
pip install -r requirements.txt
streamlit run app.py

🧠 How It Works

flowchart TD
    A[User Inputs Text] --> B[Choose Summary Type]
    B --> C{Summary Type?}
    C -->|Extractive| D[TextRank via Sumy]
    C -->|Abstractive| E[BART via Hugging Face]
    D --> F[Return Summary]
    E --> F[Return Summary]
    F --> G[Display in Streamlit]

Loading

📊 Example Output Snapshot

Sentiment Count
👍 Good 52
👎 Bad 27
😐 Neutral 21

🌐 Future Enhancements

  • 🗃️ Save comment history and results to CSV
  • 🧠 Upgrade to deep learning-based sentiment models
  • 📱 Deploy as mobile-friendly PWA
  • 🌍 Multilingual comment support (translation + sentiment)

📜 License

This project is licensed under the MIT License.


💬 Acknowledgements


✨ Output Samples

Type Original Text Summary
Extractive News article about AI First 3 ranked sentences
Abstractive 500-word blog post Condensed abstract overview

🌐 Future Enhancements

  • 🗂️ File upload for summarizing PDFs and DOCX
  • 🎙️ Speech-to-text support
  • 🌍 Language detection and multilingual support
  • 🔗 Summarization of URLs or web content
  • 📊 Evaluation using ROUGE, BLEU metrics

📜 License

This project is licensed under the MIT License.


💬 Acknowledgements


About

A Streamlit-powered NLP application that efficiently summarizes large text documents using extractive (TextRank) and abstractive (BART) techniques. Users can input news articles, reports, or essays and receive a refined summary tailored to their needs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published