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 +1 -1
config.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
| 15 |
"1": "hyponym",
|
| 16 |
"2": "hypernym",
|
| 17 |
"3": "co-hyponym",
|
| 18 |
-
"4": "antonym"
|
| 19 |
"5": "metaphor"
|
| 20 |
},
|
| 21 |
"label2id": {
|
|
|
|
| 15 |
"1": "hyponym",
|
| 16 |
"2": "hypernym",
|
| 17 |
"3": "co-hyponym",
|
| 18 |
+
"4": "antonym",
|
| 19 |
"5": "metaphor"
|
| 20 |
},
|
| 21 |
"label2id": {
|