lsh_query | R Documentation |
This function retrieves the matches for a single document from an lsh_buckets
object created by lsh
. See lsh_candidates
to retrieve all pairs of matches.
lsh_query(buckets, id)
buckets |
An |
id |
The document ID to find matches for. |
An lsh_candidates
data frame with matches to the document specified.
lsh
, lsh_candidates
dir <- system.file("extdata/legal", package = "textreuse")
minhash <- minhash_generator(200, seed = 235)
corpus <- TextReuseCorpus(dir = dir,
tokenizer = tokenize_ngrams, n = 5,
minhash_func = minhash)
buckets <- lsh(corpus, bands = 50)
lsh_query(buckets, "ny1850-match")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.