View source: R/clustering_similarity.R
find_similar_docs | R Documentation |
This function finds documents similar to a given document based on TF-IDF and cosine similarity.
find_similar_docs(text_data, doc_id, text_column = "abstract", n_similar = 5)
text_data |
A data frame containing text data. |
doc_id |
ID of the document to find similar documents for. |
text_column |
Name of the column containing text to analyze. |
n_similar |
Number of similar documents to return. |
A data frame with similar documents and their similarity scores.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.