View source: R/sentimentRules.R
rulePositivity | R Documentation |
Ratio of words labeled as positive in that dictionary compared to the total
number of words in the document. Here, it uses the entry positiveWords
of the SentimentDictionaryBinary
.
rulePositivity(dtm, d)
dtm |
Document-term matrix |
d |
Dictionary of type |
Ratio of positive words compared to all
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.