textdata (version 0.1.0)

lexicon_bing: Bing sentiment lexicon

Description

General purpose English sentiment lexicon that categorizes words in a binary fashion, either positive or negative

Usage

lexicon_bing(dir = NULL, delete = FALSE, return_path = FALSE)

Arguments

dir

Character, path to directory where data will be stored. If NULL, user_cache_dir will be used to determine path.

delete

Logical, set TRUE to delete dataset.

return_path

Logical, set TRUE to return the path of the dataset.

Value

A tibble with 6,787 rows and 2 variables:

word

An English word

sentiment

Indicator for sentiment: "negative" or "positive"

Details

Citation info:

This dataset was first published in Minqing Hu and Bing Liu, ``Mining and summarizing customer reviews.'', Proceedings of the ACM SIGKDD International Conference on Knowledge Discovery & Data Mining (KDD-2004), 2004.

inproceedings{Hu04, author = {Hu, Minqing and Liu, Bing}, title = {Mining and Summarizing Customer Reviews}, booktitle = {Proceedings of the Tenth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining}, series = {KDD '04}, year = {2004}, isbn = {1-58113-888-1}, location = {Seattle, WA, USA}, pages = {168--177}, numpages = {10}, url = {http://doi.acm.org/10.1145/1014052.1014073}, doi = {10.1145/1014052.1014073}, acmid = {1014073}, publisher = {ACM}, address = {New York, NY, USA}, keywords = {reviews, sentiment classification, summarization, text mining}, }

Examples

Run this code
# NOT RUN {
lexicon_bing()

# Custom directory
lexicon_bing(dir = "data/")

# Deleting dataset
lexicon_bing(delete = TRUE)

# Returning filepath of data
lexicon_bing(return_path = TRUE)
# }

Run the code above in your browser using DataCamp Workspace