A simple web application that uses NLTK's VADER sentiment analysis tool to detect the sentiment of a given text input. Built using Flask and styled with modern HTML/CSS.
- Analyze sentiment of any English text (Positive, Neutral, or Negative)
- Uses NLTK's VADER sentiment intensity analyzer
- Clean, responsive UI with modern design
- Fast and lightweight
- Python 3
- Flask
- HTML5 / CSS3
- JavaScript (optional enhancements)
- NLTK (VADER lexicon)
git clone https://github.com/therandomuser03/sentiment-analyzer.git
cd sentiment-analyzerpython -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activatepip install -r requirements.txtimport nltk
nltk.download('vader_lexicon')Alternatively, run this in the terminal:
python -c "import nltk; nltk.download('vader_lexicon')"python app.pyOpen your browser and go to:
http://127.0.0.1:5000/
sentiment-analyzer/
│
├── app.py
├── requirements.txt
├── static/
│ ├── style.css
│ └── script.js
├── templates/
│ └── index.html
├── README.md
└── screenshot.png # Optional
MIT License — feel free to use, modify, and distribute.
- Add support for multiple languages
- Include charts or visual feedback
- Save analysis history
- API version for external use
Pull requests are welcome! If you find bugs or want to improve the UI/UX, feel free to contribute.
- NLTK
- VADER Sentiment Analysis
- Flask framework