View source: R/conversation_sequence.R
style_sim_seq | R Documentation |
This function calculates stylistic similarity over a sequence of conversation exchanges within a single dyad.
style_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("How are you doing?", "I'm doing great, thanks!",
"That's wonderful to hear.", "I'm glad you're doing well.")
)
result <- style_sim_seq(conversation, window_size = 2)
print(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.