structural_sim_dyads {conversim}R Documentation

Calculate structural similarity for multiple dyads

Description

This function calculates an extended measure of structural similarity for multiple dyads.

Usage

structural_sim_dyads(conversations)

Arguments

conversations

A data frame with columns 'dyad_id', 'speaker', and 'processed_text'

Value

A list containing structural similarity for each dyad and the overall average similarity

Examples

convs <- data.frame(
  dyad_id = c(1, 1, 1, 1, 2, 2, 2, 2),
  speaker = c("A", "B", "A", "B", "C", "D", "C", "D"),
  processed_text = c("i love pizza", "me too favorite food",
                     "whats your favorite topping", "enjoy pepperoni mushrooms",
                     "i prefer pasta", "pasta delicious like spaghetti carbonara",
                     "ever tried making home", "yes quite easy make")
)
structural_sim_dyads(convs)

[Package conversim version 0.1.0 Index]