In RStudio, I have column containing Dutch sentences which I would like to add a polarity score between -1.0 and +1.0 to via sentiment analysis. I've already tried to use the pattern.nlp package from jwfijffels, but this didn't work for me. I found an instruction on https://github.com/bnosac/pattern.nlp in which it is explained that - in order for the nlp package to work, you should download a specific version of Python and perform some additional steps. However, these steps are a bit vague to me.
Is there someone who can explain this installation process to me in more detail? Actually, the whole section under "Installation" is a bit of a mystery to me. What should I download specifically?
Where to run the code pip install pattern? How do I properly set the PATH? It would be much appreciated if someone would guide me trough it step by step.
Or: if someone knows another way to perform sentiment analysis on text, I would of course be open to it, e.g. translating the Dutch sentences to English and then perform the sentiment analysis. Or would such a translation be a bad idea?
Here a set of 6 Dutch sentences.
text = c("Slechte bediening, van begin tot eind",
"Het eten was heerlijk en de bediening was fantastisch",
"Geweldige service en beleefde bediening",
"Verschrikkelijk. Ik had een vlieg in mijn soep",
"Het was oké. De bediening kon wat beter, maar het eten was wel lekker. Leuk sfeertje wel!",
"Ondanks dat het druk was toch op tijd ons eten gekregen. Complimenten aan de kok voor het op smaak brengen van mijn biefstuk")
identifier <- c("3", "4", "6", "7", "1", "5")
df <- data.frame(identifier, text)