terms: Extract most likely terms

View source: R/seededlda.R

termsR Documentation

Extract most likely terms

Description

terms() returns the most likely terms, or words, 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

number of terms to be extracted.

Details

Users can access the original matrix x$phi for likelihood scores.

Value

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


koheiw/quanteda.seededlda documentation built on Jan. 26, 2025, 11:42 a.m.