'Dutch sentiment analysis RobBERT

I have a question about Dutch sentiment analysis in Python. For a project at school I want to analyse the sentiment of a Dutch interview. I have worked with Vader but that doesn't work in Dutch. So I found RobBERT: a Dutch RoBERTa-based language model. When I run this code, with result1 being a positive sentence and result2 a negative sentence, the positive sentence has LABEL_0 with a score of 0.568 and the negative sentence also LABEL_0 with a score of 0.533. Is this output right or am I doing something wrong because the scores do not differ much. Thanks in advance!

from transformers import RobertaTokenizer, RobertaForSequenceClassification
from transformers import pipeline
import torch

model_name = "pdelobelle/robbert-v2-dutch-base"
model = RobertaForSequenceClassification.from_pretrained(model_name)
tokenizer = RobertaTokenizer.from_pretrained(model_name)

classifier = pipeline('sentiment-analysis', model=model, tokenizer = tokenizer)

result1 = classifier('Ik vind het mooi')
result2 = classifier('Ik vind het lelijk')
print(result1)
print(result2)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source