An open API service indexing awesome lists of open source software.

https://github.com/theadhithyankr/sentimental-analyser

A Sentiment Analysis Web App using SVM & NaΓ―ve Bayes with an interactive sentiment scale!
https://github.com/theadhithyankr/sentimental-analyser

flask html-css-javascript natural-language-processing nlp-machine-learning python sentiment-analysis

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

# πŸ“ 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
```bash
git clone https://github.com/YOUR-USERNAME/sentiment-analysis.git
cd sentiment-analysis
```

### 2⃣ Create & Activate Virtual Environment
```bash
python -m venv venv
# Activate (Windows)
venv\Scripts\activate
# Activate (Mac/Linux)
source venv/bin/activate
```

### 3⃣ Install Dependencies
```bash
pip install -r requirements.txt
```

### 4⃣ Run the Application
```bash
python app.py
```
Access it at: **`http://127.0.0.1:5000/`**

---

## πŸ—„ Demo
![Sentiment Scale Example](https://your-image-link.com/demo.png)
*Example of the sentiment scale transitioning from red (negative) to green (positive).*

---

## πŸ’œ License
This project is licensed under the **MIT License** – see the [`LICENSE`](LICENSE) file for details.

---

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

---

## πŸ‘¨β€πŸ’» Author
[GitHub Profile](https://github.com/theadhithyankr)