A minimal web-based tool that fetches any news article URL, summarizes its core content, and analyzes both the sentiment and political bias using state-of-the-art NLP models.
- Automatic article scraping via URL
- Text summarization using
facebook/bart-large-cnn - Sentiment analysis using
distilbert-base-uncased-finetuned-sst-2-english - Political bias classification with
premsa/political-bias-prediction-allsides-DeBERTa - One-click shutdown button (no need to hit Ctrl+C)
Paste a URL from any valid news site.
Click Analyze.
Behind the scenes:
- Article is downloaded and cleaned
- Summarizer extracts key points
- Sentiment and political bias are detected from the raw article
Results are displayed in real time on the page.
git clone https://github.com/shayan-sethi/newsanalyzer
cd newsanalyzerpip install -r requirements.txtIf newspaper3k gives issues, try:
pip install newspaper3k --force-reinstallpython start_app.pyThen open http://127.0.0.1:5000 in your browser.
facebook/bart-large-cnn— summarizationdistilbert-base-uncased-finetuned-sst-2-english— sentimentpremsa/political-bias-prediction-allsides-DeBERTa— bias classification