Calculate sentiment similarity sequence for a single dyad
Source:R/conversation_sequence.R
sent_sim_seq.Rd
This function calculates sentiment similarity over a sequence of conversation exchanges within a single dyad.
Examples
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)
#> $sequence
#> [1] 0.9687500 0.8575962
#>
#> $average
#> [1] 0.9131731
#>