ruleNegativity {SentimentAnalysis} | R Documentation |
Ratio of words labeled as negative in that dictionary compared to the total
number of words in the document. Here, it uses the entry negativeWords
of the SentimentDictionaryBinary
.
ruleNegativity(dtm, d)
dtm |
Document-term matrix |
d |
Dictionary of type |
Ratio of negative words compared to all