FastDeveaud2014: Fast Implementation of Deveaud 2014

FastDeveaud2014R Documentation

Fast Implementation of Deveaud 2014

Description

Fast Implementation of Deveaud 2014

Usage

FastDeveaud2014(x, cl)

## S4 method for signature 'matrix'
FastDeveaud2014(x, cl = parallel::detectCores() - 1L)

## S4 method for signature 'TopicModel'
FastDeveaud2014(x, cl = parallel::detectCores() - 1L)

## S4 method for signature 'jobjRef'
FastDeveaud2014(x, cl = parallel::detectCores() - 1L)

Arguments

x

A topic model.

cl

Number of cores to use

Examples

if (!mallet_is_installed()) mallet_install()
fname <- system.file(package = "biglda", "extdata", "mallet", "lda_mallet.bin")
lda <- mallet_load_topicmodel(fname)
lda2 <- as_LDA(lda)
FastDeveaud2014(lda2, parallel::detectCores() - 1L)

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