How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-classification", model="larskjeldgaard/senda")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("larskjeldgaard/senda")
model = AutoModelForSequenceClassification.from_pretrained("larskjeldgaard/senda", device_map="auto")
Quick Links

Danish BERT fine-tuned for Sentiment Analysis (Polarity)

This model detects polarity ('positive', 'neutral', 'negative') of danish texts.

It is trained and tested on Tweets annotated by Alexandra Institute.

Here is an example on how to load the model in PyTorch using the 🤗Transformers library:

from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
tokenizer = AutoTokenizer.from_pretrained("larskjeldgaard/senda")
model = AutoModelForSequenceClassification.from_pretrained("larskjeldgaard/senda")

# create 'senda' sentiment analysis pipeline 
senda_pipeline = pipeline('sentiment-analysis', model=model, tokenizer=tokenizer)

senda_pipeline("Sikke en dejlig dag det er i dag")
Downloads last month
2,447
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Space using larskjeldgaard/senda 1