subjectivity: a dataset containing a list of positive and negative...

subjectivityR Documentation

a dataset containing a list of positive and negative subjective words.

Description

A dataset containing a list of positive and negative subjective words parsed from Janyce Wiebe's subjectivity lexicon.

Usage

data(subjectivity)

Format

A data.frame containing three columns.

1. word - A word from Janyce Wiebe's subjectivity lexicon.

2. subjectivity - A string indicating whether the word is strongly or weakly subjective.

3. polarity - A string indicating whether the word expresses a positive or negative sentiment.

Source

Riloff and Wiebe (2003). Learning extraction patterns for subjective expressions. EMNLP-2003. http://www.cs.pitt.edu/mpqa/#subj_lexicon

Examples

# READ THE CSV
data <- read.csv(system.file("data/subjectivity.csv.gz",package="sentimentBR"))
# ALTERNATIVELY, USE THE data() FUNCTION
data(subjectivity)

Jodavid/sentimentBR documentation built on Oct. 9, 2022, 8:37 a.m.