Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


conversim (version 0.1.0)

structural_similarity: Calculate structural similarity between two conversations

Description

This function calculates the structural similarity between two conversations based on their length and average turn length.

Usage

structural_similarity(conv1, conv2)

Value

A numeric value representing the structural similarity

Arguments

conv1

A character vector representing the first conversation

conv2

A character vector representing the second conversation

Examples

Run this code
conv1 <- c("Hello", "Hi there", "How are you?", "I'm fine, thanks")
conv2 <- c("Good morning", "Hello", "Nice day, isn't it?", "Yes, indeed")
structural_similarity(conv1, conv2)

Run the code above in your browser using DataLab