lexical_similarity {conversim} | R Documentation |
This function calculates the lexical similarity between two conversations based on the overlap of unique words.
lexical_similarity(conv1, conv2)
conv1 |
A character string representing the first conversation |
conv2 |
A character string representing the second conversation |
A numeric value representing the lexical similarity
conv1 <- "The quick brown fox jumps over the lazy dog"
conv2 <- "The lazy dog sleeps under the quick brown fox"
lexical_similarity(conv1, conv2)