Description Usage Arguments Value Examples
View source: R/coRPysprofiling.R
Returns a tibble of distances from the reference document for each corpus in a vector of corpora. This tibble is sorted in the order of increasing distance.
1 2 3 4 5 6 | corpora_best_match(
refDoc,
corpora,
metric = "cosine_similarity",
model_name = "cb_ns_500_10"
)
|
refDoc |
character vector for reference document |
corpora |
character vector for corpora |
metric |
character vector for metric used to calculate distance, optional (default : "cosine_similarity") |
model_name |
character vector, optional (default : "cb_ns_500_10") |
tibble
1 | coRPysprofiling::corpora_best_match("kitten meows", c("ice cream is yummy", "cat meowed", "dog barks", "The Hitchhiker's Guide to the Galaxy has become an international multi-media phenomenon"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.