Downloads · 30 days
15
8% of all-time downloads
Thrad/thrad-distilbert-conversation-classifier
thrad-distilbert-conversation-classifier is a text classification model from Thrad. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
DistilBERT model for conversation classification with hard labels. For additional information about the data preprocessing, training, or evaluation, refer to the public repository for the project [here].
Downloads · 30 days
15
8% of all-time downloads
All-time downloads
184
Public
Parameters
67M
675 MB on disk
Likes
2
Public
Click a slice to open those files.
.onnx268 MB · 40%
From the Hugging Face model README
DistilBERT model for conversation classification with hard labels. For additional information about the data preprocessing, training, or evaluation, refer to the public repository for the project [here].
from transformers import AutoTokenizer, AutoModelForSequenceClassification
model = AutoModelForSequenceClassification.from_pretrained("Thrad/thrad-distilbert-conversation-classifier")
tokenizer = AutoTokenizer.from_pretrained("Thrad/thrad-distilbert-conversation-classifier")
# Example inference
text = "Your conversation text here"
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=512)
outputs = model(**inputs)
predictions = outputs.logits.softmax(dim=-1)