text_model_download | R Documentation |
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
.
text_model_download(model = NULL)
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:
|
Invisibly return the names of all downloaded models.
text_init
text_model_remove
text_to_vec
text_unmask
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.