Elliot89's picture
Upload 6 files
55f8f35 verified
---
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
1. **Enter a restaurant review** in the text box
2. **Click "Analyze Sentiment"**
3. **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](https://github.com/MrEinsteinE/restaurant-sentiment-analysis)
The repository includes:
- Complete Jupyter notebook with all experiments
- Model training and evaluation code
- Dataset and visualizations
- Comprehensive documentation
## πŸ‘¨β€πŸ’» Author
**Einstein Ellandala**
- Project: ML-06-BML11
- [LinkedIn](https://linkedin.com/in/einstein-ellandala/) | [GitHub](https://github.com/MrEinsteinE)
## πŸ“„ License
MIT License - Feel free to use and modify!
---
**πŸ’¬ Feedback?** Found a bug or have a suggestion? Open an issue on [GitHub](https://github.com/MrEinsteinE/restaurant-sentiment-analysis/issues)!