Downloads · 30 days
6.1K
20% of all-time downloads
erst/xlm-roberta-base-finetuned-nace
xlm-roberta-base-finetuned-nace is a text classification model from erst. Use it when you need a label for a piece of text. It is set up for transformers.
This model is xlm-roberta-base fine-tuned to classify descriptions of activities into NACE Rev. 2 codes.
Downloads · 30 days
6.1K
20% of all-time downloads
All-time downloads
30.5K
Public
Repo size
4.5 GB
Likes
5
Public
Click a slice to open those files.
.bin1.1 GB · 100%
From the Hugging Face model README
This model is xlm-roberta-base fine-tuned to classify descriptions of activities into NACE Rev. 2 codes.
The data used to fine-tune the model consist of 2.5 million descriptions of activities from Norwegian and Danish businesses. To improve the model's multilingual performance, random samples of the Norwegian and Danish descriptions were machine translated into the following languages:
from transformers import pipeline, AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("erst/xlm-roberta-base-finetuned-nace")
model = AutoModelForSequenceClassification.from_pretrained("erst/xlm-roberta-base-finetuned-nace")
pl = pipeline(
"sentiment-analysis",
model=model,
tokenizer=tokenizer,
return_all_scores=False,
)
pl("The purpose of our company is to build houses")
This model is released under the MIT License