The goal of artm is to integrate by integrating BigARTM (Additive Regularization of Topic Models) with R.
Install the package using remotes
.
# install.packages("remotes")
remotes::install_github("news-r/artm")
To install the dependency follow the instructions given on the official documentation.
Use data from another news-r package.
# remotes::install_github("news-r/nethoser")
data("webhoser", package = "nethoser")
Preprocess.
library(artm)
# Preprocess returns path to file
(file <- preprocess(webhoser, text, uuid))
batch_vectorizer(file)