Create a matrix of pairwise similarities between each string in strings_A
and strings_B
.
Value
A matrix of cosine similarities between the embeddings of strings_A and the embeddings of strings_B
Examples
if (FALSE) { # \dontrun{
embeddings <- get_embeddings(c('UPS', 'USPS', 'Postal Service'))
get_similarity_matrix(embeddings)
get_similarity_matrix(embeddings, 'Postal Service')
get_similarity_matrix(embeddings, 'Postal Service', c('UPS', 'USPS'))
} # }