ros_sentiment: Rosette API sentiment analysis service

Description Usage Arguments Examples

View source: R/sentiment.r

Description

Analyzes the positive and negative sentiment expressed by the input. The response contains sentiment analysis results.

Usage

1
ros_sentiment(content, genre = NULL, language = NULL)

Arguments

content

either a URI or character vector of content to process

genre

document genre (optional)

language

Language: ISO 639-3 code (optional)

Examples

1
2
3
4
5
txt <- c("Original Ghostbuster Dan Aykroyd, who also co-wrote the 1984 Ghostbusters ",
         "film, couldn<e2><80><99>t be more pleased with the new all-female Ghostbusters cast, ",
         "telling The Hollywood Reporter, <e2><80><9c>The Aykroyd family is delighted by this ",
         "inheritance of the Ghostbusters torch by these most magnificent women in comedy.")
ros_sentiment(paste0(txt, collapse=""))

hrbrmstr/rosette documentation built on May 17, 2019, 5:13 p.m.