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 -1
config.json
CHANGED
|
@@ -29,5 +29,5 @@
|
|
| 29 |
"id2label": {
|
| 30 |
"0": "informal",
|
| 31 |
"1": "formal",
|
| 32 |
-
}
|
| 33 |
}
|
|
|
|
| 29 |
"id2label": {
|
| 30 |
"0": "informal",
|
| 31 |
"1": "formal",
|
| 32 |
+
}
|
| 33 |
}
|