default: Default sentiment matching dictionary

defaultR Documentation

Default sentiment matching dictionary

Description

This is a default sentiment matching dictionary with over 100 pairs of positive:negative examples. Feel free to use as-is or use as an example to create your own. The main point is that there needs to be a corresponding negative for each positive.

Usage

data(default)

Format

An object of class "data.table"

Examples

# For Example
pos <- c("good apples", "fresh", "delicious")
neg <- c("bad apples", "not fresh", "not delicious")

# If positive was:
c("good", "fresh", "delicious")

# Then "These were some good apples" would be seen as closer to a negative example!


sentiment.ai documentation built on March 19, 2022, 2:15 a.m.