documenttopics: Process large Document-Topics-Matrices

save_document_topicsR Documentation

Process large Document-Topics-Matrices

Description

Process large Document-Topics-Matrices

Usage

save_document_topics(model, destfile = tempfile())

load_document_topics(filename, verbose = TRUE)

Arguments

model

A rJava object 'ParallelTopicModel' or inheriting from it.

destfile

Path to a file for temporarily saving data on documents and topics.

filename

Path to file with data exported from Java.

verbose

A 'logical' value, whether to show progress messages.

Examples

m <- system.file(package = "biglda", "extdata", "mallet", "lda_mallet.bin") |>
  mallet_load_topicmodel()
fname <- save_document_topics(m)
y <- load_document_topics(fname)
dim(y)

PolMine/biglda documentation built on Feb. 25, 2023, 11:24 p.m.