semantic_coherence: Semantic Coherence: Mimno et al. (2011)

View source: R/posterior.R

semantic_coherenceR Documentation

Semantic Coherence: Mimno et al. (2011)

Description

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.

Usage

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.

Details

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

Value

A vector of topic coherence metric calculated by each topic.


keyATM documentation built on May 31, 2023, 6:27 p.m.