as.dictionary.textmodel_lda: Create a dictionary from topic terms

View source: R/utils.R

as.dictionary.textmodel_ldaR Documentation

Create a dictionary from topic terms

Description

as.dictionary() creates a quanteda::dictionary object from top topic terms.

Usage

## S3 method for class 'textmodel_lda'
as.dictionary(x, n = 10, separator = NULL, ...)

Arguments

x

a model fitted by textmodel_lda().

n

the number of terms in the dictionary for each topic.

separator

the character in between multi-word dictionary values.

...

not used.

Value

Returns a quanteda::dictionary object.


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