calculate_sentiment {RSentiment} | R Documentation |
This function loads text and calculates sentiment of each sentence. It classifies sentences into 6 categories: Positive, Negative, Very Positive, Very Negative Sarcasm and Neutral.
calculate_sentiment(text)
text |
A vector of sentences or a sentence (English). |
A vector containing sentiment of each sentence.
calculate_sentiment("This is good")
calculate_sentiment(c("This is good","This is bad"))