File size: 2,459 Bytes
55f8f35 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | ---
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)!
|