lexicon_bing {textdata} | R Documentation |
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,
clean = FALSE,
manual_download = FALSE
)
Arguments
dir |
Character, path to directory where data will be stored. If
|
delete |
Logical, set |
return_path |
Logical, set |
clean |
Logical, set |
manual_download |
Logical, set |
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},
}
Value
A tibble with 6,787 rows and 2 variables:
- word
An English word
- sentiment
Indicator for sentiment: "negative" or "positive"
Source
https://www.cs.uic.edu/~liub/FBS/sentiment-analysis.html
See Also
Other lexicon:
lexicon_afinn()
,
lexicon_loughran()
,
lexicon_nrc()
,
lexicon_nrc_eil()
,
lexicon_nrc_vad()
Examples
## 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)
## End(Not run)