View source: R/topic_coherence.R
coherence | R Documentation |
Helper function for calculating coherence for a single topic's worth of terms
coherence(dtm_data, top_terms, smoothing_beta)
dtm_data |
a document-term matrix of token counts coercible to |
top_terms |
a character vector of the top terms for a given topic |
smoothing_beta |
a numeric indicating the value to use to smooth the document frequencies in order avoid log zero issues, the default is 1 |
a numeric indicating coherence for the topic
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.