FastDeveaud2014 | R Documentation |
Fast Implementation of Deveaud 2014
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)
x |
A topic model. |
cl |
Number of cores to use |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.