After installing I tried to test the code with the example text:
library(pattern.nlp)
pattern_sentiment("i really really hate iphones", language = "english")
But then I get the following error:
Error in pyExec(sprintf("senti = %s(%s)", FUN, pyobj)) :
Traceback (most recent call last):
File "", line 1, in
NameError: name 'sentiment_en' is not defined
What could be wrong and how could I try to fix it?
After installing I tried to test the code with the example text:
But then I get the following error:
Error in pyExec(sprintf("senti = %s(%s)", FUN, pyobj)) : Traceback (most recent call last): File "", line 1, in
NameError: name 'sentiment_en' is not defined
What could be wrong and how could I try to fix it?