Cleanlab/amazon-reviews
Viewer โข Updated โข 6k โข 176 โข 2
This 67M parameter model is a fine-tuned version of bert-base-uncased trained on the Cleanlab Amazon Reviews dataset. It achieves the following results on the evaluation set: Loss: 0.2724 Accuracy: 0.8920
from transformers import pipeline
classifier = pipeline(
"text-classification",
model="profautorino/binary-product-review-sentiment-with-distilbert",
)
print(classifier("The headphones sound great and are comfortable to wear."))
For batch inference, pass a list of review strings:
reviews = [
"This product exceeded my expectations!",
"It broke after one day and was a waste of money.",
]
predictions = classifier(reviews, truncation=True)
for review, prediction in zip(reviews, predictions):
print(f"{prediction['label']} ({prediction['score']:.3f}): {review}")
Intended to be used for batch sentiment analysis of product reviews in testing. Use in production is not advised. Use at your own risk.
See Cleanlab/amazon-reviews for details: https://huggingface.co/datasets/Cleanlab/amazon-reviews
The following hyperparameters were used during training:
Base model
google-bert/bert-base-uncased