terms: Extract most likely terms

View source: R/seededlda.R

termsR Documentation

Extract most likely terms

Description

terms() returns the most likely terms for topics based on the phi parameter.

Usage

terms(x, n = 10)

Arguments

x

a LDA model fitted by textmodel_seededlda() or textmodel_lda().

n

the number of terms to be extracted.

Details

Topic terms are sorted in the descending order within topics based on the values in x$phi.

Value

Returns a character matrix with the most frequent words in each topic.


seededlda documentation built on Nov. 5, 2025, 7:33 p.m.

Related to terms in seededlda...