Conversation Classifiers
Collection
A collection of Thrad.ai open-source and open-weight models for AI chat classification by user intent class.
•
2 items
•
Updated
BERT model for conversation intent 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-bert-conversation-classifier")
tokenizer = AutoTokenizer.from_pretrained("Thrad/thrad-bert-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)