ruleNegativity: Ratio of negative words

Description Usage Arguments Value

View source: R/sentimentRules.R

Description

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.

Usage

1

Arguments

dtm

Document-term matrix

d

Dictionary of type SentimentDictionaryBinary

Value

Ratio of negative words compared to all


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