| sfa_install_python | R Documentation |
Declares and installs the Python packages needed by the "sbert"
embedding backend and the default sfa_nli_matrix classifier
(sentence-transformers, which pulls in torch and
transformers). With reticulate (>= 1.41) these requirements are
also declared automatically on first use via reticulate::py_require(),
so calling this is optional — it is handy for provisioning ahead of time
(e.g. on a machine with internet before running offline) or into a specific
environment.
sfa_install_python(packages = "sentence-transformers", ...)
packages |
Character vector of Python packages to require/install. |
... |
Passed to |
Invisible NULL.
## Not run:
# one-time setup of the Python embedding environment
sfa_install_python()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.