File size: 1,884 Bytes
f05ed74 | 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 | ---
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:
1. **Aspect Extraction**: Identifies aspects mentioned in reviews (e.g., "food", "service", "atmosphere")
2. **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](https://huggingface.co/sdf299/abte-restaurants-distilbert-base-uncased)
- **Sentiment Classification**: [sdf299/absa-restaurants-distilbert-base-uncased](https://huggingface.co/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* |