sent_sim_seq {conversim} | R Documentation |
This function calculates sentiment similarity over a sequence of conversation exchanges within a single dyad.
sent_sim_seq(conversation, window_size = 3)
conversation |
A data frame representing the conversation |
window_size |
An integer specifying the size of the sliding window |
A list containing the sequence of similarities and the average similarity
conversation <- data.frame(
processed_text = c("I love this movie!", "It's really amazing.",
"The acting is superb.", "I couldn't agree more.")
)
result <- sent_sim_seq(conversation, window_size = 2)
print(result)