Description Usage Arguments Value

View source: R/topic_coherence.R

Helper function for calculating coherence for a single topic's worth of terms

1 | ```
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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.