
The jaccard distance computes the percentage of terms in the 2 vectors which are overlapping.
textrank_jaccard(termsa, termsb)
a character vector of words
a character vector of words
The Jaccard distance distance between the 2 vectors
# NOT RUN {
sentencea <- c("I", "like", "champaign")
sentenceb <- c("I", "prefer", "choco")
textrank_jaccard(termsa = sentencea, termsb = sentenceb)
# }
Run the code above in your browser using DataLab