Description Usage Arguments Value Examples
This function loads text and calculates score of each sentence on basis of presence of words of positive and negative sentiment, presence of negation, and checking for sarcasm. 0 indicates neutral sentiment. Positive value indicates positive sentiment. Negative value indicates negative sentiment. 99 indicates sarcasm.
1 |
text |
A vector of sentences or a sentence (English). |
A vector containing polarity of each sentence.
1 2 | calculate_score("This is good")
calculate_score(c("This is good","This is bad"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.