powered by
This function calculates the lexical similarity between two conversations based on the overlap of unique words.
lexical_similarity(conv1, conv2)
A numeric value representing the lexical similarity
A character string representing the first conversation
A character string representing the second conversation
conv1 <- "The quick brown fox jumps over the lazy dog" conv2 <- "The lazy dog sleeps under the quick brown fox" lexical_similarity(conv1, conv2)
Run the code above in your browser using DataLab