When I am using the following function, it reports error; so I think it can be the problem of firewall and I have to shift to use offline model. Are there any step-by-step guide on this? I am new to this project.
> embeddings <- textEmbed(texts)
[nltk_data] Error loading punkt: <urlopen error [Errno 61] Connection
[nltk_data] refused>
[nltk_data] Error loading punkt: <urlopen error [Errno 61] Connection
[nltk_data] refused>
Error in py_call_impl(callable, call_args$unnamed, call_args$named) :
OSError: We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like bert-base-uncased is not the path to a directory containing a file named config.json.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.
Run `reticulate::py_last_error()` for details.
I like this can be run offline in local computer
New contributor
章仲恒 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.