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)

Arguments

x

the output from a keyATM model (see keyATM()).

docs

texts read via keyATM_read().

n

integer. The number terms to visualize. Default is 10.

Value

A vector of topic coherence metric calculated by each topic.

Details

Equation 1 of Mimno et al. 2011 adopted to keyATM.