Description Usage Arguments Value

View source: R/topic.coherence.R

Calculates topic coherence for each topic in a topic model. Uses the implementation put forward by Mimno et al. (2011) - Note, this directly uses the code in the package 'SpeedyReader'

1 | ```
topic.coherence(ldaOut, dtm, n.terms)
``` |

`ldaOut` |
fitted topic model |

`dtm` |
document term matrix for the fitted topic model |

`n.terms` |
The number of terms in each topic to calculate topic coherence on |

vector of topic coherence scores (same length as the number of topics in the model)

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.