This project implements a Simple Recurrent Neural Network (RNN) model for sentiment analysis on the IMDB movie review dataset.
The model classifies reviews as positive or negative based on textual input.
It also includes a Streamlit web app that allows users to input custom reviews and receive predictions in real time.
git clone https://github.com/anjaliy11/RNN_sentimental_analysis.git
cd RNN_sentimental_analysispip install -r requirements.txtjupyter notebook
simple_rnn.ipynb
prediction.ipynbstreamlit run main.py✅ Train an RNN on the IMDB dataset
✅ Sentiment classification (Positive / Negative)
✅ Interactive Streamlit app for real-time predictions
✅ Preprocessing of text using word embeddings and padding
✅ High accuracy model with user-friendly interface
RNN_sentimental_analysis/
│── main.py # Streamlit app for predictions
│── simple_rnn.ipynb # Training script for RNN model
│── simple_rnn_imdb.keras # Saved model file
│── requirements.txt # Required dependencies
│── README.md # Project documentation
- Improve model generalization with LSTM/GRU
- Add more datasets for robust sentiment classification
- Enhance UI with advanced visualization
- Deploy app on cloud (Heroku/Streamlit Cloud)
Contributions are welcome!
- Fork the repo
- Create a new branch (
feature-xyz) - Commit your changes
- Open a Pull Request
This project is licensed under the MIT License.