calculate_sentiment {RSentiment} | R Documentation |
Predicts the sentiment of sentences
Description
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.
Usage
calculate_sentiment(text)
Arguments
text |
A vector of sentences or a sentence (English). |
Value
A vector containing sentiment of each sentence.
Examples
calculate_sentiment("This is good")
calculate_sentiment(c("This is good","This is bad"))
[Package RSentiment version 2.2.2 Index]