|
Download README.md from preshanth09/support-ticket-classifier: direct link, hf CLI and curl.
- Browser
- Download file 2.53 kB
-
https://huggingface.co/preshanth09/support-ticket-classifier/resolve/main/README.md
- Command line
-
hf download hf://preshanth09/support-ticket-classifier/README.md
-
curl -L -o README.md https://huggingface.co/preshanth09/support-ticket-classifier/resolve/main/README.md
2.53 kB
| language: en | |
| license: apache-2.0 | |
| base_model: bert-base-uncased | |
| pipeline_tag: text-classification | |
| datasets: | |
| - Tobi-Bueck/customer-support-tickets | |
| metrics: | |
| - f1 | |
| - accuracy | |
| # Support Ticket Routing Classifier (BERT) | |
| `bert-base-uncased` fine-tuned to route English customer support tickets to one of 10 queues. | |
| - Code: https://github.com/im-preshanth/support-ticket-classifier | |
| - Live demo: https://huggingface.co/spaces/preshanth09/support-ticket-classifier-demo | |
| ## Intended use | |
| Suggesting the destination queue for an incoming support ticket (subject + body), ideally as a top-3 suggestion for a human triage agent. Not intended for automated decisions on real customers without retraining and evaluation on in-house data. | |
| ## Labels | |
| Billing and Payments, Customer Service, General Inquiry, Human Resources, IT Support, Product Support, Returns and Exchanges, Sales and Pre-Sales, Service Outages and Maintenance, Technical Support. | |
| ## Training data | |
| English subset of `Tobi-Bueck/customer-support-tickets` (synthetic). 23,745 tickets after cleaning and de-duplication; stratified 80/10/10 split with seed 42 (18,996 / 2,374 / 2,375). | |
| ## Training procedure | |
| - Max sequence length 256, learning rate 3e-5, 700 warmup steps, weight decay 0.01 | |
| - Batch size 16, 6 epochs, fp16, Google Colab T4 GPU (about 19 minutes) | |
| - Cross-entropy loss with inverse-frequency class weights | |
| - Best epoch selected by validation macro-F1 | |
| ## Evaluation (held-out test set, 2,375 tickets) | |
| | Model | Accuracy | Macro-F1 | Weighted-F1 | | |
| |---|---|---|---| | |
| | TF-IDF + LogReg baseline | 0.504 | 0.507 | 0.505 | | |
| | This model | 0.514 | 0.565 | 0.514 | | |
| Strongest queues: Billing and Payments (F1 0.803), Service Outages and Maintenance (0.683). Weakest: Product Support (0.417), Customer Service (0.442). | |
| Run-to-run variation: an earlier training run with identical settings and seed scored 0.579 macro-F1 (the run documented in the GitHub repo). GPU non-determinism causes differences of about one point between runs. | |
| ## Limitations | |
| - Trained on synthetic tickets; performance on real tickets is unknown. | |
| - Technical Support, IT Support and Product Support overlap heavily and are frequently confused with each other. | |
| - English only. Scores vary by about one macro-F1 point between training runs. | |
| ## How to use | |
| ```python | |
| from transformers import pipeline | |
| clf = pipeline("text-classification", model="preshanth09/support-ticket-classifier", top_k=3) | |
| clf("I was charged twice for my subscription this month and need a refund.") | |
| ``` | |