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.
- β 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
-
Programming Language: Python
-
Libraries:
- pandas
- numpy
- nltk
- scikit-learn
- matplotlib
- streamlit
Sentiment-Analysis-NLP/
βββ app.py
βββ dataset.csv
βββ requirements.txt
βββ README.md
git clone https://github.com/selvan-01/Sentiment-Analysis-NLP.git
cd Sentiment-Analysis-NLP
pip install -r requirements.txt
streamlit run app.py
- Text data is cleaned using regex and stopword removal
- TF-IDF converts text into numerical vectors
- Random Forest model is trained on the dataset
- User input is processed and predicted in real-time
Input:
I love this product! It's amazing π
Output:
Positive Sentiment π
- πΌ LinkedIn: https://www.linkedin.com/in/senthamil45
- π Portfolio: https://senthamill.vercel.app/
- π» GitHub: https://github.com/selvan-01
- π₯ Add Deep Learning (LSTM / BERT)
- π Display prediction confidence score
- π Deploy on Streamlit Cloud
- π¨ Improve UI/UX with advanced styling
This project is built for learning and demonstrating NLP and Machine Learning concepts in real-world applications.
If you like this project, consider giving it a β on GitHub!