textrank_jaccard {textrank} | R Documentation |
Calculate the distance between 2 vectors based on the Jaccard distance
Description
The jaccard distance computes the percentage of terms in the 2 vectors which are overlapping.
Usage
textrank_jaccard(termsa, termsb)
Arguments
termsa |
a character vector of words |
termsb |
a character vector of words |
Value
The Jaccard distance distance between the 2 vectors
Examples
sentencea <- c("I", "like", "champaign")
sentenceb <- c("I", "prefer", "choco")
textrank_jaccard(termsa = sentencea, termsb = sentenceb)
[Package textrank version 0.3.1 Index]