A newer version of the Gradio SDK is available:
6.6.0
metadata
title: ABSA
app_file: app_spaces.py
sdk: gradio
sdk_version: 5.9.1
π½οΈ Restaurant Review Analyzer
A Gradio-powered web interface for analyzing restaurant reviews using Aspect-Based Sentiment Analysis (ABSA). This application identifies specific aspects (like food, service, atmosphere) mentioned in reviews and determines the sentiment associated with each aspect.
π― How It Works
The application uses two fine-tuned DistilBERT models:
- Aspect Extraction: Identifies aspects mentioned in reviews (e.g., "food", "service", "atmosphere")
- Sentiment Classification: Determines sentiment (positive/negative) for each aspect
π Try It Out!
Simply enter a restaurant review in the text box and click "Analyze Sentiment" to see:
- Identified Aspects: What specific elements are mentioned
- Sentiment Analysis: Whether each aspect is viewed positively or negatively
- Confidence Scores: How certain the model is about each prediction
π Example
Input: "The services here is wonderful, but I hate the food. However, I still love the atmosphere here."
Output:
- service β POSITIVE (0.952)
- food β NEGATIVE (0.887)
- atmosphere β POSITIVE (0.934)
π§ Models
- Aspect Extraction: sdf299/abte-restaurants-distilbert-base-uncased
- Sentiment Classification: sdf299/absa-restaurants-distilbert-base-uncased
π‘ Use Cases
Perfect for:
- Restaurant owners analyzing customer feedback
- Review aggregation platforms
- Market research on dining experiences
- Academic research in sentiment analysis
- Understanding customer opinions at scale
Built with π€ Transformers and Gradio