Views
No views yet
distilroberta-base for SaaS customer-support email intent classification.| ID | Intent | Department |
|---|---|---|
| 0 | login_issue | Technical Support |
| 1 | billing_refund | Billing |
| 2 | subscription_change | Billing |
| 3 | bug_report | Engineering |
| 4 | feature_request | Product |
| 5 | integration_api | Developer Support |
| 6 | performance_issue | Technical Support |
| 7 | security_concern | Security |
| Model | Accuracy | Macro F1 |
|---|---|---|
| TF-IDF + Logistic Regression | 1.0000 | 1.0000 |
| DistilRoBERTa (fine-tuned) | 0.9975 | 0.9975 |
distilroberta-base1from transformers import pipeline
2import json
3
4meta = json.load(open('label_metadata.json'))
5clf = pipeline('text-classification', model='./email-intent-classifier', top_k=3)
6
7results = clf(email_text)
8top = results[0] # highest-confidence prediction
9intent = top['label']
10dept = meta['intent_metadata'][intent]['department']
11conf = top['score']