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)

Arguments

models

Model names at HuggingFace.

Value

No return value.

See Also

BERT_info

BERT_vocab

FMAT_load

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 Sept. 11, 2024, 8:28 p.m.