Description Usage Arguments Details Value Examples
Cosine similarity for text documents
1 2 3 4 5 6 |
text_vector1 |
a character string vector representing text documents (it should have the same length as the text_vector2) |
text_vector2 |
a character string vector representing text documents (it should have the same length as the text_vector1) |
threads |
a numeric value specifying the number of cores to run in parallel |
separator |
specifies the separator used between words of each character string in the text vectors |
The function calculates the cosine distance between pairs of text sequences of two character string vectors
a numeric vector
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.