top_terms: Compute the Top Terms of an LDA Model

Description Usage Arguments Value

Description

Computes a relevance score using the weighted sum of the document term score and corpus term freqeuncy.

Usage

1
top_terms(model, lambda, nterms, freq)

Arguments

model

An LDA model produced by the topicmodels package.

lambda

A float. Percent to weight each term.

nterms

An integer. The number of top terms to return.

freq

A table of word per document frequency counts. (TODO)

Value

A tibble of the top 'nterms' terms for each topic.


nateaff/legolda documentation built on May 18, 2019, 10:15 a.m.