Text Classification
Transformers
Safetensors
deberta-v2
fake-review-detection
proxy-labels
yelpzip
text-embeddings-inference
Instructions to use sarkarghya/yelp-fake-review-detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sarkarghya/yelp-fake-review-detector with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="sarkarghya/yelp-fake-review-detector")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("sarkarghya/yelp-fake-review-detector") model = AutoModelForSequenceClassification.from_pretrained("sarkarghya/yelp-fake-review-detector", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Yelp Fake Review Detector
DeBERTa-v3-base fine-tuned on YelpZip filter-status proxy labels.
The labels are proxy ground truth from the YelpZip dataset, not manually verified fraud labels. Use this model to identify reviews that match Yelp-filtered suspicious patterns, not to make an unsupported claim that a person or review is fraudulent.
Labels
recommended: Yelp-filtered recommended-like reviewyelp_filtered_suspicious: Yelp-filtered suspicious pattern
Evaluation
The model was trained on 483,363 reviews, validated on 60,142 reviews, and tested on 60,496 reviews. The full metrics are included in metrics.json.
At the tuned threshold in threshold.json:
- Threshold: 0.69
- Accuracy: 0.8057
- F1: 0.4033
- ROC AUC: 0.7855
- PR AUC: 0.3706
Usage
from transformers import pipeline
classifier = pipeline(
"text-classification",
model="sarkarghya/yelp-fake-review-detector",
)
print(classifier("The service was friendly and the meal was fresh."))
For a binary decision matching the reported evaluation, compare the probability for yelp_filtered_suspicious with the threshold in threshold.json.
- Downloads last month
- 40
Model tree for sarkarghya/yelp-fake-review-detector
Base model
microsoft/deberta-v3-base