text_model_download {PsychWordVec} | R Documentation |
Download pre-trained language models from HuggingFace.
Description
Download pre-trained language models (Transformers Models,
such as GPT, BERT, RoBERTa, DeBERTa, DistilBERT, etc.)
from HuggingFace to
your local ".cache" folder ("C:/Users/[YourUserName]/.cache/").
The models will never be removed unless you run
text_model_remove
.
Usage
text_model_download(model = NULL)
Arguments
model |
Character string(s) specifying the pre-trained language model(s) to be downloaded. For a full list of options, see HuggingFace. Defaults to download nothing and check currently downloaded models. Example choices:
|
Value
Invisibly return the names of all downloaded models.
See Also
Examples
## Not run:
# text_init() # initialize the environment
text_model_download() # check downloaded models
text_model_download(c(
"bert-base-uncased",
"bert-base-cased",
"bert-base-multilingual-cased"
))
## End(Not run)