
Build a topic-term data frame from any supported topic model
Source:R/topic_modeling.R
extract_topic_terms_df.RdUnified helper that produces the long-format data.frame(topic, term, beta)
expected by generate_topic_labels() from an STM model or an embedding result.
Dispatches on the object's structure:
STM model (has
$beta$logbetaand$vocab) -> top terms viastm::labelTopics()FREXEmbedding result (has
$topic_keywords) -> c-TF-IDF keywords with rank-derived pseudo-beta