The Movie Review Sentiment Analyzer is a machine learning-powered application that classifies movie reviews as Positive, Negative, or Neutral based on sentiment analysis. Using a trained Recurrent Neural Network (RNN), the app predicts the sentiment of user-inputted text and provides a confidence score.
- π Text-based Sentiment Analysis
- π Confidence Score for Sentiment Prediction
- π Emoji-based Sentiment Representation
- π¨ Modern, User-Friendly UI with Streamlit
- π Visual Progress Bar for Sentiment Strength
- Python
- Streamlit
- TensorFlow/Keras
- NumPy & Pandas
- RNN
- Python 3.8+
- TensorFlow installed
- Pretrained model (
SimpleRnn_imdb.h5
) - Tokenizer file (
tokenizer.pkl
)
- Clone the repository
git clone https://github.com/taskmaster-1/sentiment-analyzer.git
cd sentiment-analyzer
- Create a virtual environment
python -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`
- Install dependencies
pip install -r requirements.txt
streamlit run app.py
Create a requirements.txt
with:
streamlit
tensorflow
numpy
pandas
pickle-mixin
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
- Never commit your model files (
SimpleRnn_imdb.h5
) or tokenizer files (tokenizer.pkl
) to public repositories - Use
.gitignore
to exclude sensitive files
- Enter a movie review in the text box
- Click the "Analyze Sentiment" button
- The model predicts the sentiment (Positive, Negative, or Neutral)
- The confidence score is displayed
- A visual progress bar shows sentiment strength
- Improve model accuracy with advanced NLP techniques
- Deploy as a web app using Streamlit Sharing or Render
- Support for multiple languages
- Live API for sentiment prediction
Current Version: 1.0.0
Distributed under the MIT License. See LICENSE
for more information.
Gmail - vivekyad5223@gmail.com
Project Link: https://github.com/taskmaster-1/sentiment-analyzer