Description Usage Arguments Details Value See Also Examples
get_most_similar
Finds the documents with the highest cosine-similarity score among their tf-idf vectors.
1 | get_most_similar(tfidf_vector, abstracts_dataframe)
|
abstracts_dataframe |
A DataFrame returned from the |
tf-idf_vector |
A numeric vector of tf-idf weights that has the same number of columns as those in the abstracts DataFrame. |
append_tfidf
Given a dataframe returned from the get_pubmed_abstracts
function that already has
tf-idf scores calculated from append_tfidf
, and a vector of tf-idf scores that have the
same number of columns, return the indices of the documents that have the highest cosine-similarity scores in descending order.
A DataFrame.
get_pubmed_abstracts
append_tfidf
1 | indices <-get_most_similar(abstracts_df_with_tfidf,tfidf_vector)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.