Downloads · 30 days
1.8K
5% of all-time downloads
larskjeldgaard/senda
senda is a text classification model from larskjeldgaard. 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.
This model detects polarity ('positive', 'neutral', 'negative') of danish texts.
Downloads · 30 days
1.8K
5% of all-time downloads
All-time downloads
38.3K
Public
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.bin443 MB · 50%
From the Hugging Face model README
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")