Description Usage Arguments Author(s) References See Also Examples
This function uses Simhash worker to do keyword extraction and finds the keywords from two inputs, and then computes Hamming distance between them.
1 2 3 | 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
1 2 3 4 5 6 7 8 9 10 11 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.