distance {jiebaR} | R Documentation |
This function uses Simhash worker to do keyword extraction and finds the keywords from two inputs, and then computes Hamming distance between them.
distance(codel, coder, jiebar)
vector_distance(codel, coder, jiebar)
codel |
For |
coder |
For |
jiebar |
jiebaR worker |
Qin Wenfeng
http://en.wikipedia.org/wiki/Hamming_distance
## Not run:
words = "hello world"
simhasher = worker("simhash", topn = 1)
simhasher <= words
distance("hello world" , "hello world!" , simhasher)
vector_distance(c("hello","world") , c("hello", "world","!") , simhasher)
## End(Not run)