Skip to content

theadhithyankr/Sentimental-Analyser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📝 Sentiment Analysis Web App

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.


🚀 Features

  • 📊 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

📂 Project Structure

💃 SENTIMENTAL_ANALYSIS
│── 📃 models
│   ├── nb_model.pkl
│   ├── svm_model.pkl
│   └── vectorizer.pkl
│── 📃 static
│   └── style.css
│── 📃 templates
│   └── index.html
│── app.py
│── README.md
│── LICENSE

🛠️ Setup Instructions

1⃣ Clone the Repository

git clone https://github.com/YOUR-USERNAME/sentiment-analysis.git
cd sentiment-analysis

2⃣ Create & Activate Virtual Environment

python -m venv venv
# Activate (Windows)
venv\Scripts\activate
# Activate (Mac/Linux)
source venv/bin/activate

3⃣ Install Dependencies

pip install -r requirements.txt

4⃣ Run the Application

python app.py

Access it at: http://127.0.0.1:5000/


🗄 Demo

Sentiment Scale Example
Example of the sentiment scale transitioning from red (negative) to green (positive).


💜 License

This project is licensed under the MIT License – see the LICENSE file for details.


⭐ Contributing

Feel free to fork and improve the project! PRs are welcome. 😊


👨‍💻 Author

GitHub Profile

About

A Sentiment Analysis Web App using SVM & Naïve Bayes with an interactive sentiment scale!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published