load_mallet_model: Read in model outputs from files

View source: R/model.R

load_mallet_modelR Documentation

Read in model outputs from files

Description

Load a model object from a set of files (like those produced from write_mallet_model). Leave a filename out to skip loading that piece of the puzzle.

Usage

load_mallet_model(
  doc_topics_file,
  doc_ids_file,
  vocab_file,
  top_words_file = NULL,
  topic_words_file = NULL,
  metadata_file = NULL,
  params_file = NULL,
  state_file = NULL
)

Arguments

doc_topics_file

document-topic matrix file (CSV)

doc_ids_file

document id file (text, one ID per line)

vocab_file

model vocabulary file (text, one word type per line)

top_words_file

topic top word data frame file (CSV)

topic_words_file

topic-word matrix file (CSV)

metadata_file

metadata file (CSV or TSV)

params_file

modeling parameters file (read with dget)

state_file

CSV with simplified Gibbs sampling state (created by output_mallet_model or simplify_state)

Value

a mallet_model object

See Also

load_mallet_model_directory, load_from_mallet_state


agoldst/dfrtopics documentation built on July 15, 2022, 4:13 p.m.