[R] Question about package "SentimentAnalysis"

Mehdi Dadkhah
Fri, 08 May 2020 12:31:54 -0000

Hi,
I hope you are doing well!
I read a vignette (
https://cran.r-project.org/web/packages/SentimentAnalysis/vignettes/SentimentAnalysis.html)
about interested package, "SentimentAnalysis". But i faced with a
question.
In mentioned  vignette, the sentiment has been applied on a sentence or
multiple sentences separately. Can this package calculate sentiment
direction/score for a long texts?
for example:

# Create a vector of strings
documents <- "Wow, I really like the new light sabers!That book was
excellent.R is a fantastic language.The service in this restaurant was
miserable.This is neither positive or negative."

# Analyze sentiment
sentiment <- analyzeSentiment(documents)

Many thanks!
With best regards,

--
*Mehdi Dadkhah*