Downloads · 30 days
10
14% of all-time downloads
sayandg/distilbert_uncased_finetuned_ecommerce_reviews
distilbert_uncased_finetuned_ecommerce_reviews is a text classification model from sayandg. Use it when you need a label for a piece of text. It is set up for transformers.
This is a text classification model based on DistilBERT. It has been fine-tuned on the ecommercereviewswithlanguagedrift dataset.
Downloads · 30 days
10
14% of all-time downloads
All-time downloads
74
Public
Parameters
67M
268 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
This is a text classification model based on DistilBERT. It has been fine-tuned on the ecommerce_reviews_with_language_drift dataset.
The model is used for classifying product reviews in text format. The probable outputs are 'positive', 'negative' and 'neutral'.
The arize-ai/ecommerce_reviews_with_language_drift dataset was used for training. Only the 'text' and 'label' columns were used. The training dataset contains 8k rows out of which 34.1% are labeled 'positive', 33.4 % are labeled 'negative' and 32.5% are labeled 'neutral'. So it is a balanced dataset.
The model was fine tuned based on the F1 score for 50 epochs. The best score obtained was 0.67.
from transformers import pipeline
classifier = pipeline("text-classification", model="your-model-identifier")
result = classifier("Your example text here")
print(result)