Learn R Programming

textTinyR (version 1.1.8)

dice_distance: dice similarity of words using n-grams

Description

dice similarity of words using n-grams

Usage

dice_distance(word1, word2, n_grams = 2)

Value

a float number

Arguments

word1

a character string

word2

a character string

n_grams

a value specifying the consecutive n-grams of the words

Examples

Run this code

library(textTinyR)

word1 = 'one_word'

word2 = 'two_words'

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

Run the code above in your browser using DataLab