Downloads · 30 days
12
2% of all-time downloads
Dragneel/ticket-classification-v1
ticket-classification-v1 is a machine learning model from Dragneel. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
language: - en license: apache-2.0 tags: - text-classification - customer-support - ticket-classification - distilbert datasets: - custom metrics: - accuracy model-index: - name: ticket-classification-v1 results: - ta…
Downloads · 30 days
12
2% of all-time downloads
All-time downloads
566
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
language:
This model fine-tunes the DistilBERT base uncased model to classify customer support tickets into four categories. It achieves 94.85% accuracy on the evaluation dataset.
This model is designed to automatically categorize customer support tickets based on their content. It can classify tickets into the following categories:
The model uses DistilBERT as its base architecture - a distilled version of BERT that is smaller, faster, and more efficient while retaining good performance.
This model can be directly used for:
This model should not be used for:
Users should review classifications for accuracy, especially for tickets that fall on the boundary between categories. Consider retraining the model on domain-specific data if using in a specialized industry.
Use the code below to get started with the model.
from transformers import pipeline
# Load the model
classifier = pipeline("text-classification", model="Dragneel/ticket-classification-v1")
# Example tickets
tickets = [
"I was charged twice for my subscription this month. Can you help?",
"The app keeps crashing whenever I try to upload a file",
"Would it be possible to add dark mode to the dashboard?",
"What are your business hours?"
]
# Classify tickets
for ticket in tickets:
result = classifier(ticket)
print(f"Ticket: {ticket}")
print(f"Category: {result[0]['label']}")
print(f"Confidence: {result[0]['score']:.4f}")
print()
id_to_label = {
0: 'Billing Question',
1: 'Feature Request',
2: 'General Inquiry',
3: 'Technical Issue'
}
The model was trained on a dataset of customer support tickets that include diverse examples across all four categories. Each ticket typically contains a title and description detailing the customer's issue or request.
The model is evaluated using the following metrics:
The model achieved the following metrics on the evaluation dataset:
| Metric | Value |
|---|---|
| Accuracy | 94.85% |
| Loss | 0.248 |
| Runtime | 16.01s |
| Samples/second | 23.05 |
The model architecture is based on DistilBERT, a distilled version of BERT. It consists of the base DistilBERT model with a classification head layer on top. The model was fine-tuned using cross-entropy loss to predict the correct category for each ticket.
For inquiries about this model, please open an issue on the model repository.