Instructions to use mohdali1/customer-support-ticket-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mohdali1/customer-support-ticket-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="mohdali1/customer-support-ticket-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("mohdali1/customer-support-ticket-classifier") model = AutoModelForSequenceClassification.from_pretrained("mohdali1/customer-support-ticket-classifier") - Notebooks
- Google Colab
- Kaggle
Upload DistilBertForSequenceClassification
Browse files- config.json +10 -10
config.json
CHANGED
|
@@ -11,19 +11,19 @@
|
|
| 11 |
"eos_token_id": null,
|
| 12 |
"hidden_dim": 3072,
|
| 13 |
"id2label": {
|
| 14 |
-
"0": "
|
| 15 |
-
"1": "
|
| 16 |
-
"2": "
|
| 17 |
-
"3": "
|
| 18 |
-
"4": "
|
| 19 |
},
|
| 20 |
"initializer_range": 0.02,
|
| 21 |
"label2id": {
|
| 22 |
-
"
|
| 23 |
-
"
|
| 24 |
-
"
|
| 25 |
-
"
|
| 26 |
-
"
|
| 27 |
},
|
| 28 |
"max_position_embeddings": 512,
|
| 29 |
"model_type": "distilbert",
|
|
|
|
| 11 |
"eos_token_id": null,
|
| 12 |
"hidden_dim": 3072,
|
| 13 |
"id2label": {
|
| 14 |
+
"0": "account",
|
| 15 |
+
"1": "billing",
|
| 16 |
+
"2": "general",
|
| 17 |
+
"3": "returns",
|
| 18 |
+
"4": "tech_support"
|
| 19 |
},
|
| 20 |
"initializer_range": 0.02,
|
| 21 |
"label2id": {
|
| 22 |
+
"account": 0,
|
| 23 |
+
"billing": 1,
|
| 24 |
+
"general": 2,
|
| 25 |
+
"returns": 3,
|
| 26 |
+
"tech_support": 4
|
| 27 |
},
|
| 28 |
"max_position_embeddings": 512,
|
| 29 |
"model_type": "distilbert",
|