sentiment_similarity: Calculate sentiment similarity between two conversations

View source: R/main_functions.R

sentiment_similarityR Documentation

Calculate sentiment similarity between two conversations

Description

This function calculates the sentiment similarity between two conversations using the sentimentr package.

Usage

sentiment_similarity(conv1, conv2)

Arguments

conv1

A character string representing the first conversation

conv2

A character string representing the second conversation

Value

A numeric value representing the sentiment similarity

Examples

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)

conversim documentation built on Sept. 20, 2024, 5:09 p.m.