Downloads · 30 days
2
2% of all-time downloads
HanfuZhao781/car-review-sentiment-distilbert
car-review-sentiment-distilbert is a text classification model from HanfuZhao781. 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.
distilbert-base-uncased fine-tuned for 3-class sentiment on real Edmunds car owner reviews, for a per-aspect word-of-mouth analyzer.
Downloads · 30 days
2
2% of all-time downloads
All-time downloads
110
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
distilbert-base-uncased fine-tuned for 3-class sentiment on real Edmunds car owner reviews, for a per-aspect word-of-mouth analyzer.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
m = "HanfuZhao781/car-review-sentiment-distilbert"
tok = AutoTokenizer.from_pretrained(m)
model = AutoModelForSequenceClassification.from_pretrained(m)
x = tok("The engine is powerful but the fuel economy is terrible", return_tensors="pt")
print(model(**x).logits.softmax(-1))
App: https://HanfuZhao781-car-review-sentiment.hf.space Code: https://github.com/hanfuzhao/Module2-CarReviewSentiment
Built for the 540 Summer Module 2 hackathon.