该模型可以检测丹麦文本的极性('positive','neutral','negative')。
它是使用由 Alexandra Institute 标注的推文进行训练和测试的。
这里是如何使用 🤗Transformers 库在PyTorch中加载模型的示例:
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")