Downloads · 30 days
13
39% of all-time downloads
raika96/ticket_cat_bert
ticket_cat_bert is a text classification model from raika96. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
This is a fine-tuned DistilBERT model for classifying IT support tickets into 9 categories.
Downloads · 30 days
13
39% of all-time downloads
All-time downloads
33
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
This is a fine-tuned DistilBERT model for classifying IT support tickets into 9 categories.
This model was fine-tuned on customer support tickets to automatically categorize incoming IT support requests. It uses DistilBERT as the base model and was trained to classify tickets into 9 distinct categories.
This model is designed to automatically categorize IT support tickets to help route them to the appropriate support team or department.
The model classifies tickets into the following categories:
from transformers import DistilBertForSequenceClassification, DistilBertTokenizer
import torch
# Load model and tokenizer
model_name = "YOUR_HF_USERNAME/ticketcat-distilbert" # Replace with your actual model name
tokenizer = DistilBertTokenizer.from_pretrained(model_name)
model = DistilBertForSequenceClassification.from_pretrained(model_name)
# Classify a ticket
ticket_text = "I can't access my account, password reset link is not working"
inputs = tokenizer(ticket_text, return_tensors="pt", padding=True, truncation=True, max_length=128)
with torch.no_grad():
outputs = model(**inputs)
probs = torch.softmax(outputs.logits, dim=1)
predicted_class = torch.argmax(probs, dim=1).item()
confidence = probs.max().item()
# Map to category name
categories = {'0': 'Account Access / Login Issues', '1': 'Billing & Payments', '2': 'Bug / Defect Reports', '3': 'Feature Requests', '4': 'General Inquiries / Other', '5': 'How-To / Product Usage Questions', '6': 'Integration Issues', '7': 'Performance Problems', '8': 'Security & Compliance'}
predicted_category = categories[str(predicted_class)]
print(f"Category: {predicted_category}")
print(f"Confidence: {confidence:.4f}")
If you use this model, please cite:
@misc{ticketcat2024,
author = {TicketCat Team},
title = {TicketCat: IT Support Ticket Classification},
year = {2024},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/YOUR_USERNAME/ticketcat-distilbert}}
}