Downloads · 30 days
13
2% of all-time downloads
KennethTM/danish-bert-review-sentiment
danish-bert-review-sentiment is a text classification model from KennethTM. 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.
BERT classification model for short customer reviews written in Danish.
Downloads · 30 days
13
2% of all-time downloads
All-time downloads
623
Public
Parameters
111M
885 MB on disk
Likes
1
Public
Click a slice to open those files.
.bin443 MB · 50%
How the weights are stored.
F32111M · 100%
From the Hugging Face model README
BERT classification model for short customer reviews written in Danish.
The model uses 5 classes ranging from 1-5 stars:
The model is fine-tuned using the pre-trained Danish BERT model.
Test the model using the 🤗Transformers library pipeline:
from transformers import pipeline
classifier = pipeline("sentiment-analysis", model="KennethTM/danish-bert-review-sentiment")
classifier("Intet virkede og ingen hjælp at hente.")
#[{'label': '⭐', 'score': 0.4953940808773041}]
Or load it using the Auto* classes:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
model = AutoModelForSequenceClassification.from_pretrained("KennethTM/danish-bert-review-sentiment")
tokenizer = AutoTokenizer.from_pretrained("KennethTM/danish-bert-review-sentiment")