Run this model with HF Jobs
Run TurkuNLP/web-register-classification-multilingual on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/TurkuNLP/web-register-classification-multilingual. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/TurkuNLP/web-register-classification-multilingual on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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 files10 unmodified lines1112131415161714 unmodified lines32333435363710 unmodified lines---# Web register classification (multilingual model)Amultilingual web register classifier, fine-tuned from XLM-RoBERTa-large.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).The model demonstrates state-of-the-art performance in classifying web registers and achieves good zero-shot performance for additional languages.It is designed to support the development of open language models and for linguists analyzing register variation.14 unmodified lines- **Repository:** https://github.com/TurkuNLP/pytorch-registerlabeling- **Paper:** Coming soon!## How to Get Started with the ModelUse the code below to get started with the model.10 unmodified lines1112131415161714 unmodified lines3233343536373839404142434445464748495051525354555657585960616263646510 unmodified lines---# Web register classification (multilingual model)A multilingual web register classifier, fine-tuned from XLM-RoBERTa-large.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).The model demonstrates state-of-the-art performance in classifying web registers and achieves good zero-shot performance for additional languages.It is designed to support the development of open language models and for linguists analyzing register variation.14 unmodified lines- **Repository:** https://github.com/TurkuNLP/pytorch-registerlabeling- **Paper:** Coming soon!## Register labels and their abbreviations- **MT:** Machine translated or generated- **LY:** Lyrical- **SP:** Spoken- **it:** Interview- **ID:** Interactive discussion- **NA:** Narrative- **ne:** News report- **sr:** Sports report- **nb:** Narrative blog- **HI:** How-to or instructions- **re:** Recipe- **IN:** Informational description- **en:** Encyclopedia article- **ra:** Research article- **dtp:** Description of a thing or person- **fi:** Frequently asked questions- **lt:** Legal terms and conditions- **OP:** Opinion- **rv:** Review- **ob:** Opinion blog- **rs:** Denominational religious blog or sermon- **av:** Advice- **IP:** Informational persuasion- **ds:** Description with intent to sell- **ed:** News & opinion blog or editorial## How to Get Started with the ModelUse the code below to get started with the model.
README.md+29-1