api: API

Description Usage Arguments Examples

Description

This is an API for downloading, getting information and loading datasets/models. See [RaRe-Technologies/gensim-data](https://github.com/RaRe-Technologies/gensim-data) repo for more information about models/datasets/how-to-add-new/etc.

Usage

1
2
3

Arguments

name

A specific dataset, i.e.: text8.

...

Any other argument from the official documentation.

to_r

Whether to return the information in R data structure (list).

Examples

1
2
3
4
5
6
7
8
## Not run: 
# available models to use with `api_load`
(models <- api_info() %>% names())

# load random model
api_load(sample(models, 1))

## End(Not run)

news-r/gensimr documentation built on Jan. 9, 2021, 5:55 a.m.