powered by
This function generates a comprehensive report of all similarity measures.
gen_sim_report( speech1, speech2, topic_method = "lda", semantic_method = "tfidf", glove_path = NULL )
A list containing all similarity measures and visualizations
A character string representing the first speech
A character string representing the second speech
Method for topic similarity calculation ("lda" or "lsa")
Method for semantic similarity calculation ("tfidf", "word2vec", or "glove")
Path to pre-trained GloVe file (if using "glove" method)
# \donttest{ 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) # }
Run the code above in your browser using DataLab