semantic_coherence | R Documentation |
Mimno, David et al. 2011. “Optimizing Semantic Coherence in Topic Models.” In Proceedings of the 2011 Conference on Empirical Methods in Natural Language Processing, Edinburgh, Scotland, UK.: Association for Computational Linguistics, 262–72. https://aclanthology.org/D11-1024.
semantic_coherence(x, docs, n = 10)
x |
the output from a keyATM model (see |
docs |
texts read via |
n |
integer. The number terms to visualize. Default is |
Equation 1 of Mimno et al. 2011 adopted to keyATM.
A vector of topic coherence metric calculated by each topic.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.