Skip to content

selvan-01/Sentiment-Analysis-NLP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

--- # πŸ’¬ Sentiment Analysis using NLP

πŸ“Œ Project Overview

This project is a Sentiment Analysis Web Application built using Natural Language Processing (NLP) and Machine Learning. It classifies user input text into sentiments such as Positive, Negative, or Neutral.

The application uses TF-IDF Vectorization for feature extraction and a Random Forest Classifier for prediction. A simple and interactive Streamlit UI allows users to test sentiment in real-time.


πŸš€ Features

  • βœ… Text preprocessing using NLP techniques
  • βœ… TF-IDF feature extraction
  • βœ… Machine Learning model (Random Forest)
  • βœ… Real-time sentiment prediction
  • βœ… Interactive Streamlit web interface
  • βœ… Clean and user-friendly UI

πŸ› οΈ Tech Stack

  • Programming Language: Python

  • Libraries:

    • pandas
    • numpy
    • nltk
    • scikit-learn
    • matplotlib
    • streamlit

πŸ“‚ Project Structure

Sentiment-Analysis-NLP/
│── app.py
│── dataset.csv
│── requirements.txt
│── README.md

βš™οΈ Installation & Setup

1️⃣ Clone the Repository

git clone https://github.com/selvan-01/Sentiment-Analysis-NLP.git
cd Sentiment-Analysis-NLP

2️⃣ Install Dependencies

pip install -r requirements.txt

3️⃣ Run the Application

streamlit run app.py

πŸ“Š How It Works

  1. Text data is cleaned using regex and stopword removal
  2. TF-IDF converts text into numerical vectors
  3. Random Forest model is trained on the dataset
  4. User input is processed and predicted in real-time

πŸ“Έ Example

Input:

I love this product! It's amazing 😍

Output:

Positive Sentiment 😊

πŸ”— Project Links


πŸ“ˆ Future Improvements

  • πŸ”₯ Add Deep Learning (LSTM / BERT)
  • πŸ“Š Display prediction confidence score
  • 🌐 Deploy on Streamlit Cloud
  • 🎨 Improve UI/UX with advanced styling

πŸ™Œ Acknowledgements

This project is built for learning and demonstrating NLP and Machine Learning concepts in real-world applications.


⭐ Support

If you like this project, consider giving it a ⭐ on GitHub!


About

πŸ’¬ Sentiment Analysis using NLP | ML Web App πŸš€ An interactive Machine Learning application that analyzes user text and classifies sentiment as Positive, Negative, or Neutral using TF-IDF vectorization and a Random Forest model. Built with Python, NLP techniques, and Streamlit.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors