Description Usage Arguments Value Examples
cosine distance of two character strings (each string consists of more than one words)
1 | cosine_distance(sentence1, sentence2, split_separator = " ")
|
sentence1 |
a character string consisting of multiple words |
sentence2 |
a character string consisting of multiple words |
split_separator |
a character string specifying the delimiter(s) to split the sentence |
a float number
1 2 3 4 5 6 7 | library(textTinyR)
sentence1 = 'this is one sentence'
sentence2 = 'this is a similar sentence'
cds = cosine_distance(sentence1, sentence2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.