A newer version of the Gradio SDK is available: 6.14.0
metadata
title: Restaurant Review Sentiment Analyzer
emoji: π½οΈ
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 4.44.0
app_file: app.py
pinned: false
license: mit
tags:
- sentiment-analysis
- nlp
- machine-learning
- restaurant-reviews
- text-classification
π½οΈ Restaurant Review Sentiment Analyzer
An AI-powered sentiment analysis application that classifies restaurant reviews as positive or negative in real-time using machine learning.
π― How to Use
- Enter a restaurant review in the text box
- Click "Analyze Sentiment"
- View the results:
- Predicted sentiment (Positive π or Negative π)
- Confidence score
- Probability breakdown
- Preprocessed text details
π‘ Try These Examples
Positive Reviews:
- "The food was absolutely amazing! Best restaurant I've ever been to!"
- "Outstanding experience! Staff was friendly and attentive."
- "Fantastic! Every dish was cooked to perfection."
Negative Reviews:
- "Terrible service and the food was cold. Never coming back."
- "Worst meal I've ever had. Complete waste of money."
- "Not impressed at all. Very disappointing experience."
π Model Details
- Accuracy: 85.2%
- Algorithm: Random Forest Classifier
- Features: TF-IDF vectorization (1500 features, bigrams) + statistical text features
- Training Data: 1000 restaurant reviews
π οΈ Technologies
- Python - Programming language
- Scikit-learn - Machine learning framework
- NLTK - Natural language processing
- Gradio - Web interface
- Pandas & NumPy - Data processing
π Full Project
Want to see the complete code, training process, and analysis?
π GitHub Repository: View Full Project
The repository includes:
- Complete Jupyter notebook with all experiments
- Model training and evaluation code
- Dataset and visualizations
- Comprehensive documentation
π¨βπ» Author
Einstein Ellandala
π License
MIT License - Feel free to use and modify!
π¬ Feedback? Found a bug or have a suggestion? Open an issue on GitHub!