dice_distance: dice similarity of words using n-grams

Description Usage Arguments Value Examples

View source: R/utils.R

Description

dice similarity of words using n-grams

Usage

1
dice_distance(word1, word2, n_grams = 2)

Arguments

word1

a character string

word2

a character string

n_grams

a value specifying the consecutive n-grams of the words

Value

a float number

Examples

1
2
3
4
5
6
7
library(textTinyR)

word1 = 'one_word'

word2 = 'two_words'

dts = dice_distance(word1, word2, n_grams = 2)

textTinyR documentation built on July 25, 2018, 5:03 p.m.