Instructions to use svanhvit/formality-classification-icebert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use svanhvit/formality-classification-icebert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="svanhvit/formality-classification-icebert")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("svanhvit/formality-classification-icebert") model = AutoModelForSequenceClassification.from_pretrained("svanhvit/formality-classification-icebert") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +1 -5
config.json
CHANGED
|
@@ -25,9 +25,5 @@
|
|
| 25 |
"transformers_version": "4.19.2",
|
| 26 |
"type_vocab_size": 1,
|
| 27 |
"use_cache": true,
|
| 28 |
-
"vocab_size": 50000
|
| 29 |
-
"id2label": {
|
| 30 |
-
"0": "informal",
|
| 31 |
-
"1": "formal",
|
| 32 |
-
}
|
| 33 |
}
|
|
|
|
| 25 |
"transformers_version": "4.19.2",
|
| 26 |
"type_vocab_size": 1,
|
| 27 |
"use_cache": true,
|
| 28 |
+
"vocab_size": 50000
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
}
|