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:

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)
Downloads last month
14
Safetensors
Model size
67M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Spaces using fitsblb/YelpReviewsAnalyzer 2