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!
- Host: GitHub
- URL: https://github.com/theadhithyankr/sentimental-analyser
- Owner: theadhithyankr
- License: mit
- Created: 2025-03-25T07:07:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-20T17:18:41.000Z (about 1 year ago)
- Last Synced: 2025-06-01T16:16:26.949Z (about 1 year ago)
- Topics: flask, html-css-javascript, natural-language-processing, nlp-machine-learning, python, sentiment-analysis
- Language: HTML
- Homepage: https://sentimental-analyser.vercel.app
- Size: 4.08 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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

*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)