Downloads · 30 days
4
0% of all-time downloads
banjtheman/distilbert-base-uncased-helpful-amazon
distilbert-base-uncased-helpful-amazon is a text classification model from banjtheman. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
This model was trained with data from https://registry.opendata.aws/helpful-sentences-from-reviews/ to predict how "helpful" a review is.
Downloads · 30 days
4
0% of all-time downloads
All-time downloads
1.5K
Public
Repo size
1.1 GB
Likes
0
Public
Click a slice to open those files.
.pt536 MB · 67%
From the Hugging Face model README
This model was trained with data from https://registry.opendata.aws/helpful-sentences-from-reviews/ to predict how "helpful" a review is.
The model was fine-tuned from the distilbert-base-uncased model
LABEL_0 - Not helpful
LABEL_1 - Helpful
The following code shows how to make a prediction with this model
from transformers import (
AutoTokenizer,
AutoModelForSequenceClassification,
TextClassificationPipeline,
)
tokenizer = AutoTokenizer.from_pretrained("banjtheman/distilbert-base-uncased-helpful-amazon")
model = AutoModelForSequenceClassification.from_pretrained(
"banjtheman/distilbert-base-uncased-helpful-amazon"
)
pipe = TextClassificationPipeline(model=model, tokenizer=tokenizer)
result = pipe("This was a Christmas gift for my grandson.")
print(result)
#[{'label': 'LABEL_0', 'score': 0.998775064945221}]
# This is NOT A HELPFUL comment