top_terms: Compute the Top Terms of an LDA Model

Description Usage Arguments Value

View source: R/weighted-relevance.R

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 Sept. 24, 2017, 4:38 a.m.