dice_distance | R Documentation |
dice similarity of words using n-grams
dice_distance(word1, word2, n_grams = 2)
word1 |
a character string |
word2 |
a character string |
n_grams |
a value specifying the consecutive n-grams of the words |
a float number
library(textTinyR)
word1 = 'one_word'
word2 = 'two_words'
dts = dice_distance(word1, word2, n_grams = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.