Sentiment score defined as the difference between positive and negative word counts divided by the sum of positive and negative words.
ruleSentimentPolarity(dtm, d)Sentiment score in the range of -1 to 1.
Document-term matrix
Dictionary of type SentimentDictionaryBinary
Given the number of positive words \(P\) and the number of
negative words \(N\). Then, the sentiment ratio is defined as
$$\frac{P-N}{P+N}$$. Here, it uses the entries negativeWords and
positiveWords of the SentimentDictionaryBinary.