File size: 1,444 Bytes
471d0d2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
language: en
license: mit
tags:
- sentiment-analysis
- text-classification
- yelp
- transformers
- distilbert
---

# Yelp Reviews Sentiment Analyzer

## Model Overview
This is a DistilBERT-based sentiment analysis model fine-tuned on a subset of the Yelp Open Dataset. It classifies restaurant reviews into three categories: Negative, Neutral, and Positive.

## Intended Use
- Sentiment classification of restaurant reviews for business insights, customer feedback analysis, or academic research.
- Can be integrated into applications to provide real-time sentiment detection.

## Training Data
- Yelp Open Dataset (restaurant reviews subset).
- Labels derived from star ratings converted into sentiment classes.

## Model Architecture
- Based on `distilbert-base-uncased`.
- Fine-tuned using Hugging Face's `AutoModelForSequenceClassification`.

## Performance
- Accuracy: ~78.5%
- F1 Score: ~78.4%
- Precision: ~78.3%
- Recall: ~78.5%

## Limitations
- Performance may vary on reviews from domains outside Yelp restaurants.
- Model is trained only on English-language reviews.
- Neutral class can be subjective, and borderline cases may be misclassified.

## How to Use
Use Hugging Face Transformers pipeline:

```python
from transformers import pipeline

sentiment_analyzer = pipeline("sentiment-analysis", model="fitsblb/YelpReviewsAnalyzer")

result = sentiment_analyzer("The food was amazing but the service was slow.")
print(result)