-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
56 lines (40 loc) · 1.24 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
output:
github_document:
html_preview: false
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
reticulate::use_python("usr/local/bin/python3.6")
```
# artm
<!-- badges: start -->
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
<!-- badges: end -->
The goal of artm is to integrate by integrating [BigARTM](http://bigartm.org/) (**A**dditive **R**egularization of **T**opic **M**odels) with R.
## Installation
Install the package using `remotes`.
``` r
# install.packages("remotes")
remotes::install_github("news-r/artm")
```
To install the dependency follow the instructions given on the [official documentation](http://docs.bigartm.org/en/stable/installation/index.html).
## Example
Use data from another [news-r](https://news-r.org) package.
```{r}
# remotes::install_github("news-r/nethoser")
data("webhoser", package = "nethoser")
```
Preprocess.
```r
library(artm)
# Preprocess returns path to file
(file <- preprocess(webhoser, text, uuid))
batch_vectorizer(file)
```