View source: R/sentimentRules.R
ruleNegativity | 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.