BERT_download: Download and save BERT models to local cache folder.

View source: R/FMAT.R

BERT_downloadR Documentation

Download and save BERT models to local cache folder.

Description

Download and save BERT models to local cache folder "%USERPROFILE%/.cache/huggingface".

Usage

BERT_download(models = NULL, verbose = FALSE)

Arguments

models

A character vector of model names at HuggingFace.

verbose

Alert if a model has been downloaded. Defaults to FALSE.

Value

Invisibly return a data.table of basic file information of local models.

See Also

set_cache_folder()

BERT_info()

BERT_vocab()

Examples

## Not run: 
models = c("bert-base-uncased", "bert-base-cased")
BERT_download(models)

BERT_download()  # check downloaded models

BERT_info()  # information of all downloaded models

## End(Not run)


FMAT documentation built on Jan. 12, 2026, 9:08 a.m.