Skip to contents

get_sentiment function Evaluates the type of sentiment from a given text

Usage

get_sentiment(text)

Arguments

text,

Input text data as string

Value

The type of sentiment (positive, negative or neutral) as a character

Examples

get_sentiment("This is great")
#> [1] "positive"
get_sentiment("This is a neutral sentence")
#> [1] "positive"