powered by
This function calculates the sentiment similarity between two conversations using the sentimentr package.
sentiment_similarity(conv1, conv2)
A numeric value representing the sentiment similarity
A character string representing the first conversation
A character string representing the second conversation
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)
Run the code above in your browser using DataLab