jaccard_similarity {zoomerjoin} | R Documentation |
Calculate Jaccard Similarity of two character vectors
Description
Calculate Jaccard Similarity of two character vectors
Usage
jaccard_similarity(a, b, ngram_width = 2)
Arguments
a |
the first character vector |
b |
the first character vector |
ngram_width |
the length of the shingles / ngrams used in the similarity calculation |
Value
a vector of jaccard similarities of the strings
Examples
jaccard_similarity(
c("the quick brown fox", "jumped over the lazy dog"),
c("the quck bron fx", "jumped over hte lazy dog")
)
[Package zoomerjoin version 0.1.5 Index]