lda_list_docs: List documents by their lead topic

Description Usage Arguments Value

View source: R/lda_docs.R

Description

A topic modeling utility. List documents by their most representative topic based on the gamma table of the LDA_ object resulting from 'topicmodels::LDA()'. Optionally, lower ranking topics per document are also displayed

Usage

1
lda_list_docs(lda, n_ranks = 1, n_docs = 0, topics = NULL)

Arguments

lda

LDA object

n_ranks

Number of topic ranks to display (<=k). Default 1

n_docs

Number of returned documents per lead topic. Default all

topics

A list of topic numbers to be displayed

Value

A list of n_docs documents per lead topic, each associated with n_ranks topic and their gamma


doritge/tmutilsr documentation built on Feb. 2, 2020, 7:47 p.m.