Instructions to use ChangeIsKey/change-type-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ChangeIsKey/change-type-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ChangeIsKey/change-type-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ChangeIsKey/change-type-classifier") model = AutoModelForSequenceClassification.from_pretrained("ChangeIsKey/change-type-classifier") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +3 -1
config.json
CHANGED
|
@@ -16,13 +16,15 @@
|
|
| 16 |
"2": "hypernym",
|
| 17 |
"3": "co-hyponym",
|
| 18 |
"4": "antonym"
|
|
|
|
| 19 |
},
|
| 20 |
"label2id": {
|
| 21 |
"homonym": 0,
|
| 22 |
"hyponym": 1,
|
| 23 |
"hypernym": 2,
|
| 24 |
"co-hyponym": 3,
|
| 25 |
-
"antonym": 4
|
|
|
|
| 26 |
},
|
| 27 |
"initializer_range": 0.02,
|
| 28 |
"intermediate_size": 4096,
|
|
|
|
| 16 |
"2": "hypernym",
|
| 17 |
"3": "co-hyponym",
|
| 18 |
"4": "antonym"
|
| 19 |
+
"5": "metaphor"
|
| 20 |
},
|
| 21 |
"label2id": {
|
| 22 |
"homonym": 0,
|
| 23 |
"hyponym": 1,
|
| 24 |
"hypernym": 2,
|
| 25 |
"co-hyponym": 3,
|
| 26 |
+
"antonym": 4,
|
| 27 |
+
"metaphor": 5
|
| 28 |
},
|
| 29 |
"initializer_range": 0.02,
|
| 30 |
"intermediate_size": 4096,
|