ruleRatio {SentimentAnalysis}R Documentation

Ratio of dictionary words

Description

Ratio of words in that dictionary compared to the total number of words in the document

Usage

ruleRatio(dtm, d)

Arguments

dtm

Document-term matrix

d

Dictionary of type SentimentDictionaryWordlist with words belonging to a single category

Value

Ratio of dictionary words compared to all


[Package SentimentAnalysis version 1.3-5 Index]