Elliot89's picture
Upload 6 files
55f8f35 verified

A newer version of the Gradio SDK is available: 6.14.0

Upgrade
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

  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

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!