topicmodels_json_ldavis: Convert the output of a topicmodels Latent Dirichlet...

View source: R/topic_model.R

topicmodels_json_ldavisR Documentation

Convert the output of a topicmodels Latent Dirichlet Allocation to JSON for use with LDAvis

Description

Convert the output of a topicmodels Latent Dirichlet Allocation to JSON for use with LDAvis

Usage

topicmodels_json_ldavis(fitted, corpus, doc_term)

Arguments

fitted

Output from a topicmodels LDA model.

corpus

Corpus object used to create the document term matrix for the LDA model. This should have been create with the tm package's Corpus function.

doc_term

The document term matrix used in the LDA model. This should have been created with the tm package's DocumentTermMatrix function.


aknutas/nails-package documentation built on Nov. 9, 2023, 3:28 p.m.