Hi All,
I am trying to perform sentiment analysis using R with the
help of the library(sentiment). I am using the function
classify_emotions(sentiment). It is basically selecting a particular word
from a sentence and with the help of the pr-defined score of that
particular word, it is giving the sentiment score of the whole sentence.
For example,in the sentence "I am happy", it is selecting the word "happy"
and is setting the sentiment scores accordingly. But if I write "I am not
happy", I will also do the same thing and give the same scores. In this
case it is supposed to take both the words "not" and "happy", but it is
taking only the word "happy". How can I take care of this problem. I want
the exact sentiment of the sentence
Thanks,