View source: R/lexicon_nrc_eil.R
lexicon_nrc_eil | R Documentation |
General purpose English sentiment/emotion lexicon. The NRC Affect Intensity Lexicon is a list of English words and their associations with four basic emotions (anger, fear, sadness, joy).
lexicon_nrc_eil( dir = NULL, delete = FALSE, return_path = FALSE, clean = FALSE, manual_download = FALSE )
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 |
For a given word and emotion X, the scores range from 0 to 1. A score of 1 means that the word conveys the highest amount of emotion X. A score of 0 means that the word conveys the lowest amount of emotion X.
License required for commercial use. Please contact Saif M. Mohammad (saif.mohammad@nrc-cnrc.gc.ca).
Citation info:
Details of the lexicon are in this paper. Word Affect Intensities. Saif M. Mohammad. In Proceedings of the 11th Edition of the Language Resources and Evaluation Conference (LREC-2018), May 2018, Miyazaki, Japan.
inproceedings{LREC18-AIL,
author = {Mohammad, Saif M.},
title = {Word Affect Intensities},
booktitle = {Proceedings of the 11th Edition of the Language Resources and Evaluation Conference (LREC-2018)},
year = {2018},
address={Miyazaki, Japan}
}
A tibble with 5.814 rows and 3 variables:
An English word
Value between 0 and 1
Indicator for sentiment or emotion: ("anger", "fear", "sadness", "joy")
https://saifmohammad.com/WebPages/AffectIntensity.htm
Other lexicon:
lexicon_afinn()
,
lexicon_bing()
,
lexicon_loughran()
,
lexicon_nrc_vad()
,
lexicon_nrc()
## Not run: lexicon_nrc_eil() # Custom directory lexicon_nrc_eil(dir = "data/") # Deleting dataset lexicon_nrc_eil(delete = TRUE) # Returning filepath of data lexicon_nrc_eil(return_path = TRUE) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.