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", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| language: | |
| - is | |
| pipeline_tag: text-classification | |
| widget: | |
| - text: langar þér í sígó | |
| - text: >- | |
| Frumvarpið hafi verið samþykkt til framlagningar af ríkisstjórn 24. | |
| febrúar. | |
| metrics: | |
| - accuracy | |
| library_name: transformers | |