A Flask-based web application that analyzes the sentiment of any text using NLP techniques.
- Detects Positive / Negative / Neutral sentiment
- Shows confidence score and progress bar
- Highlights matched positive/negative keywords
- Handles negation ("not good" → negative)
- Handles intensifiers ("very amazing" → stronger signal)
- 3 sample texts to test quickly
- Ctrl+Enter shortcut to analyze
-
Install dependencies:
pip install flask -
Run the app:
python app.py -
Open in browser:
http://127.0.0.1:5000
1_sentiment_analysis/
├── app.py ← Flask backend + NLP logic
├── requirements.txt
├── templates/
│ └── index.html ← Frontend UI
└── static/
├── css/style.css ← Styling
└── js/main.js ← Frontend logic
- Python, Flask
- Custom lexicon-based NLP (no downloads needed)
- HTML, CSS, Vanilla JavaScript