View source: R/main_functions_utilities.R
gen_sim_report | R Documentation |
This function generates a comprehensive report of all similarity measures.
gen_sim_report(
speech1,
speech2,
topic_method = "lda",
semantic_method = "tfidf",
glove_path = NULL
)
speech1 |
A character string representing the first speech |
speech2 |
A character string representing the second speech |
topic_method |
Method for topic similarity calculation ("lda" or "lsa") |
semantic_method |
Method for semantic similarity calculation ("tfidf", "word2vec", or "glove") |
glove_path |
Path to pre-trained GloVe file (if using "glove" method) |
A list containing all similarity measures and visualizations
speech1 <- "This is the first speech. It talks about important topics."
speech2 <- "This is the second speech. It covers similar subjects."
report <- gen_sim_report(speech1, speech2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.