eval_stm: Evaluate Structural Topic Models.

Description Usage Arguments Value Author(s) See Also

View source: R/eval_stm.R

Description

Return various metrics to evaluate topic model performance for different topic numbers.

Usage

1
eval_stm(dtm = NA, topic_model = NA, keywords = NULL)

Arguments

dtm

dtm. Document to term matrix used for Structural Topic Model.

topic_model

stm. Structural Topic Model based on the document to term matrix.

keywords

Tibble.

Value

A tibble with various metrics of tm quality for each possible combination of the topic number and seed.

Author(s)

Nicolas Mangin

See Also

create_stm


NicolasJBM/lexR documentation built on Feb. 4, 2021, 6:43 p.m.