Downloads · 30 days
7
15% of all-time downloads
aablaess/amazon-reviews-roberta
amazon-reviews-roberta is a text classification model from aablaess. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
This is a fine-tuned RoBERTa model for Sentiment Analysis, trained on the Amazon Fine Food Reviews dataset. It classifies English food reviews into three categories: positive, neutral, and negative.
Downloads · 30 days
7
15% of all-time downloads
All-time downloads
48
Public
Parameters
125M
499 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors499 MB · 99%
From the Hugging Face model README
This is a fine-tuned RoBERTa model for Sentiment Analysis, trained on the Amazon Fine Food Reviews dataset. It classifies English food reviews into three categories: positive, neutral, and negative.
This model is part of an academic Web Mining project developed at EMSI Marrakech.
You can use this model directly with a pipeline for text classification:
from transformers import pipeline
# Load the model
sentiment_classifier = pipeline("text-classification", model="aablaess/amazon-reviews-roberta")
# Analyze a review
result = sentiment_classifier("This product is absolutely delicious, I will buy it again!")
print(result)
# [{'label': 'positive', 'score': 0.98...}]