sentiment_similarity {conversim} | R Documentation |
This function calculates the sentiment similarity between two conversations using the sentimentr package.
sentiment_similarity(conv1, conv2)
conv1 |
A character string representing the first conversation |
conv2 |
A character string representing the second conversation |
A numeric value representing the sentiment similarity
conv1 <- "I love this product! It's amazing and works great."
conv2 <- "This item is okay. It does the job but could be better."
sentiment_similarity(conv1, conv2)