Learn R Programming

syuzhet (version 1.0.0)

get_sent_values: Assigns Sentiment Values

Description

Assigns sentiment values to words based on preloaded dictionary. The default is the syuzhet dictionary.

Usage

get_sent_values(char_v, method = "syuzhet")

Arguments

char_v
A string
method
A string indicating which sentiment dictionary to use

Value

A single numerical value (positive or negative) based on the assessed sentiment in the string