View source: R/textstat_polarity.R
get_polarity_dictionary | R Documentation |
Checks and standardizes a dictionary object with its polarity set, so
that the polarity categories are standardized into the keys pos
, neg
, and
(optionally) neut
. Also checks that the dictionary contains all of the
keys named in the polarity object. (It is necessary to check here since the
dictionary could have been subset after creation.)
get_polarity_dictionary(dictionary)
dictionary |
a quanteda dictionary |
a single-level dictionary with keys pos
, neg
, and (optionally)
neut
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.