Ykode/movie-sentiment-analysis
0
๐ฌ Movie Sentiment Analysis
A Flask + TensorFlow web application that predicts whether a movie review is Positive or Negative using a trained deep learning model.
๐ Features
- Real-time sentiment prediction
- Deep learning model built with TensorFlow/Keras
- Text preprocessing using a trained tokenizer
- Clean and responsive web interface
- Prediction history support
๐ ๏ธ Tech Stack
- Python
- Flask
- TensorFlow / Keras
- HTML, CSS, JavaScript
- NumPy
- Pickle
๐ Project Structure
.
โโโ app.py
โโโ model-002.keras
โโโ tokenizer.pkl
โโโ requirements.txt
โโโ Dockerfile
โโโ templates/
โ โโโ index.html
โโโ static/
โโโ style.css๐ง Model Information
- Input: Movie review text
- Preprocessing: Tokenization and sequence padding
- Output: Positive or Negative sentiment
- Framework: TensorFlow / Keras
โ๏ธ Run Locally
Clone the repository
git clone https://github.com/tripathi-yash/movie-sentiment-analysis.git
cd movie-sentiment-analysisCreate a virtual environment
python -m venv venvWindows:
venv\Scripts\activateLinux/Mac:
source venv/bin/activateInstall dependencies
pip install -r requirements.txtStart the application
python app.pyOpen:
http://localhost:5000๐ Example
Input
This movie was absolutely amazing. The acting and storyline were fantastic.Output
Positive๐จโ๐ป Author
Yash Tripathi
GitHub: https://github.com/tripathi-yash
