Instructions to use TurkuNLP/web-register-classification-multilingual with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TurkuNLP/web-register-classification-multilingual with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="TurkuNLP/web-register-classification-multilingual")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("TurkuNLP/web-register-classification-multilingual") model = AutoModelForSequenceClassification.from_pretrained("TurkuNLP/web-register-classification-multilingual", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,7 +11,7 @@ metrics:
|
|
| 11 |
---
|
| 12 |
# Web register classification (multilingual model)
|
| 13 |
|
| 14 |
-
|
| 15 |
The model is trained with the multilingual CORE corpora across five languages (English, Finnish, French, Swedish, Turkish) to classify documents based on the CORE taxonomy, detailed [here](https://turkunlp.org/register-annotation-docs/abbreviations).
|
| 16 |
The model demonstrates state-of-the-art performance in classifying web registers and achieves good zero-shot performance for additional languages.
|
| 17 |
It is designed to support the development of open language models and for linguists analyzing register variation.
|
|
@@ -32,6 +32,34 @@ It is designed to support the development of open language models and for lingui
|
|
| 32 |
- **Repository:** https://github.com/TurkuNLP/pytorch-registerlabeling
|
| 33 |
- **Paper:** Coming soon!
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
## How to Get Started with the Model
|
| 36 |
|
| 37 |
Use the code below to get started with the model.
|
|
|
|
| 11 |
---
|
| 12 |
# Web register classification (multilingual model)
|
| 13 |
|
| 14 |
+
A multilingual web register classifier, fine-tuned from XLM-RoBERTa-large.
|
| 15 |
The model is trained with the multilingual CORE corpora across five languages (English, Finnish, French, Swedish, Turkish) to classify documents based on the CORE taxonomy, detailed [here](https://turkunlp.org/register-annotation-docs/abbreviations).
|
| 16 |
The model demonstrates state-of-the-art performance in classifying web registers and achieves good zero-shot performance for additional languages.
|
| 17 |
It is designed to support the development of open language models and for linguists analyzing register variation.
|
|
|
|
| 32 |
- **Repository:** https://github.com/TurkuNLP/pytorch-registerlabeling
|
| 33 |
- **Paper:** Coming soon!
|
| 34 |
|
| 35 |
+
## Register labels and their abbreviations
|
| 36 |
+
|
| 37 |
+
- **MT:** Machine translated or generated
|
| 38 |
+
- **LY:** Lyrical
|
| 39 |
+
- **SP:** Spoken
|
| 40 |
+
- **it:** Interview
|
| 41 |
+
- **ID:** Interactive discussion
|
| 42 |
+
- **NA:** Narrative
|
| 43 |
+
- **ne:** News report
|
| 44 |
+
- **sr:** Sports report
|
| 45 |
+
- **nb:** Narrative blog
|
| 46 |
+
- **HI:** How-to or instructions
|
| 47 |
+
- **re:** Recipe
|
| 48 |
+
- **IN:** Informational description
|
| 49 |
+
- **en:** Encyclopedia article
|
| 50 |
+
- **ra:** Research article
|
| 51 |
+
- **dtp:** Description of a thing or person
|
| 52 |
+
- **fi:** Frequently asked questions
|
| 53 |
+
- **lt:** Legal terms and conditions
|
| 54 |
+
- **OP:** Opinion
|
| 55 |
+
- **rv:** Review
|
| 56 |
+
- **ob:** Opinion blog
|
| 57 |
+
- **rs:** Denominational religious blog or sermon
|
| 58 |
+
- **av:** Advice
|
| 59 |
+
- **IP:** Informational persuasion
|
| 60 |
+
- **ds:** Description with intent to sell
|
| 61 |
+
- **ed:** News & opinion blog or editorial
|
| 62 |
+
|
| 63 |
## How to Get Started with the Model
|
| 64 |
|
| 65 |
Use the code below to get started with the model.
|