A Flask-based web application that analyzes text sentiment using Naïve Bayes and Support Vector Machine (SVM) models. It features a dynamic pH-like sentiment scale to visualize the positivity, neutrality, or negativity of the input text.
- 📊 Sentiment Analysis using Naïve Bayes & SVM
- 🎨 Dynamic Sentiment Scale (Negative → Mixed → Neutral → Positive)
- ⚡ Fast Processing with real-time predictions
- 🔧 Pre-trained Models for accurate results
💃 SENTIMENTAL_ANALYSIS
│── 📃 models
│ ├── nb_model.pkl
│ ├── svm_model.pkl
│ └── vectorizer.pkl
│── 📃 static
│ └── style.css
│── 📃 templates
│ └── index.html
│── app.py
│── README.md
│── LICENSE
git clone https://github.com/YOUR-USERNAME/sentiment-analysis.git
cd sentiment-analysispython -m venv venv
# Activate (Windows)
venv\Scripts\activate
# Activate (Mac/Linux)
source venv/bin/activatepip install -r requirements.txtpython app.pyAccess it at: http://127.0.0.1:5000/
Example of the sentiment scale transitioning from red (negative) to green (positive).
This project is licensed under the MIT License – see the LICENSE file for details.
Feel free to fork and improve the project! PRs are welcome. 😊
