rulePositivity: Ratio of positive words

Description Usage Arguments Value

View source: R/sentimentRules.R

Description

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.

Usage

1

Arguments

dtm

Document-term matrix

d

Dictionary of type SentimentDictionaryBinary

Value

Ratio of positive words compared to all


SentimentAnalysis documentation built on April 10, 2018, 1:03 a.m.