Downloads · 30 days
26
2% of all-time downloads
RJuro/Da-HyggeBERT
Da-HyggeBERT is a text classification model from RJuro. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as cc-by-4.0.
Danish Go-Emotions classifier. Maltehb/danish-bert-botxo (uncased) finetuned on a translation of the goemotions dataset using Helsinki-NLP/opus-mt-en-da. Thus, performance is obviousely dependent on the translation mo…
Downloads · 30 days
26
2% of all-time downloads
All-time downloads
1.1K
Public
Repo size
885 MB
Likes
3
Public
Click a slice to open those files.
.bin443 MB · 100%
From the Hugging Face model README
Danish Go-Emotions classifier. Maltehb/danish-bert-botxo (uncased) finetuned on a translation of the go_emotions dataset using Helsinki-NLP/opus-mt-en-da. Thus, performance is obviousely dependent on the translation model.
Num examples = 189900
Num Epochs = 3
Train batch = 8
Eval batch = 8
Learning Rate = 3e-5
Warmup steps = 4273
Total optimization steps = 71125

0.1178 (21100 examples)
transformersEasiest use with transformers and pipeline:
from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
model = AutoModelForSequenceClassification.from_pretrained('RJuro/Da-HyggeBERT')
tokenizer = AutoTokenizer.from_pretrained('RJuro/Da-HyggeBERT')
classifier = pipeline("sentiment-analysis", model=model, tokenizer=tokenizer)
classifier('jeg elsker dig')
[{'label': 'kærlighed', 'score': 0.9634820818901062}]
simpletransformersfrom simpletransformers.classification import MultiLabelClassificationModel
model = MultiLabelClassificationModel('bert', 'RJuro/Da-HyggeBERT')
predictions, raw_outputs = model.predict(df['text'])