powered by
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)
A vector of sentences or a sentence (English).
A vector containing sentiment of each sentence.
# NOT RUN { calculate_sentiment("This is good") calculate_sentiment(c("This is good","This is bad")) # }
Run the code above in your browser using DataLab