Install required Python modules
in a new conda environment
and initialize the environment,
necessary for all text_*
functions
designed for contextualized word embeddings.
Source: R/03-dynamic.R
text_init.Rd
Install required Python modules
in a new conda environment
and initialize the environment,
necessary for all text_*
functions
designed for contextualized word embeddings.
Details
Users may first need to manually install Anaconda or Miniconda.
The R package text
(https://www.r-text.org/) enables users access to
HuggingFace Transformers models in R,
through the R package reticulate
as an interface to Python
and the Python modules torch
and transformers
.
For advanced usage, see