get_nrc_values: Summarize NRC Values

View source: R/syuzhet.R

get_nrc_valuesR Documentation

Summarize NRC Values

Description

Access the NRC dictionary to compute emotion types and valence for a set of words in the input vector.

Usage

get_nrc_values(word_vector, language = "english", lexicon = NULL)

Arguments

word_vector

A character vector.

language

A string

lexicon

A data frame with at least the columns "word", "sentiment" and "value". If NULL, internal data will be taken.

Value

A vector of values for the emotions and valence detected in the input vector.


mjockers/syuzhet documentation built on Aug. 22, 2023, 7:42 a.m.