lda_trim_beta: Trim LDA beta table by terms and/or topics

Description Usage Arguments Value

View source: R/lda_topics.R

Description

A topic modeling utility. Trims the beta table of the LDA object resulting from 'topicmodels::LDA()' by the requested number of highest ranking terms and / or topics

Usage

1
lda_trim_beta(lda, n_terms = 20, topics = NULL)

Arguments

lda

LDA object

n_terms

Number of highest ranking terms per topic to display. Default 20

topics

A list of topic numbers to return

Value

a tibble of highest ranking terms per topic and their beta values


doritge/tmutilsr documentation built on Feb. 2, 2020, 7:47 p.m.