Downloads · 30 days
0
faysal725/support-ticket-classifier
support-ticket-classifier is a text classification model from faysal725. Use it when you need a label for a piece of text. It is set up for setfit. The card lists the license as apache-2.0.
Automatically classifies customer support tickets by category and urgency using a fine-tuned SetFit model trained on 30,000+ real support tickets.
Downloads · 30 days
0
Access
Public
Updated Jun 24, 2026
Repo size
69.6 MB
Likes
0
Public
Click a slice to open those files.
.safetensors69.6 MB · 99%
From the Hugging Face model README
Automatically classifies customer support tickets by category and urgency using a fine-tuned SetFit model trained on 30,000+ real support tickets.
Input: Raw support ticket text
Output: Category + confidence score + urgency level
{
"category": "billing",
"confidence": 0.79,
"urgency": "high"
}
| Category | Example ticket |
|---|---|
billing | "I was charged twice for my subscription" |
technical | "My account keeps logging me out" |
complaint | "This service is completely unacceptable" |
refund | "I want to cancel and get my money back" |
| Level | When assigned |
|---|---|
high | Fraud, service down, unauthorized charges, locked out |
medium | General issues, standard requests |
low | General questions, curiosity, minor changes |
| Metric | Score |
|---|---|
| Weighted F1 | 82% |
| Complaint F1 | 92% |
| Technical F1 | 82% |
| Billing F1 | 79% |
| Refund F1 | 68% |
Trained on 30,571 labeled tickets from Kaggle + HuggingFace datasets.
Evaluated on a held-out test set of 3,058 tickets.
pip install setfit==1.0.3 sentence-transformers==2.7.0 transformers==4.40.2 huggingface_hub==0.23.5 scikit-learn numpy
from predict import predict_ticket
result = predict_ticket("I was charged twice and need a refund immediately")
print(result)
# {"category": "billing", "confidence": 0.79, "urgency": "high"}
| File | Description |
|---|---|
predict.py | Ready-to-run prediction script |
requirements.txt | Pinned dependencies |
category_model/ | Fine-tuned SetFit classifier |
calibration.pkl | Platt scaling confidence calibration |
label_mappings.pkl | Label encoders |
paraphrase-MiniLM-L3-v2Want a production-ready REST API you can deploy to your own server in minutes?
The Docker version includes:
POST /predict endpoint)👉 Get the Docker API version on Gumroad