gen_sim_report {conversim} | R Documentation |
Generate similarity report
Description
This function generates a comprehensive report of all similarity measures.
Usage
gen_sim_report(
speech1,
speech2,
topic_method = "lda",
semantic_method = "tfidf",
glove_path = NULL
)
Arguments
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) |
Value
A list containing all similarity measures and visualizations
Examples
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)
[Package conversim version 0.1.0 Index]