Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to not reach out to internet when loading model #27

Open
demongolem-biz2 opened this issue Aug 8, 2023 · 0 comments
Open

How to not reach out to internet when loading model #27

demongolem-biz2 opened this issue Aug 8, 2023 · 0 comments

Comments

@demongolem-biz2
Copy link

demongolem-biz2 commented Aug 8, 2023

I do
pip install spacy-universal-sentence-encoder

then in code:

import spacy_universal_sentence_encoder
# load one of the models: ['en_use_md', 'en_use_lg', 'xx_use_md', 'xx_use_lg']
nlp = spacy_universal_sentence_encoder.load_model('en_use_md')

But at that load_model line, the code tries to go out to the internet. I see in the stack trace lin 261 in language.py which is

self.model = hub.load(self.model_url)

Is there a way to prevent this loading from a url and just load the model locally?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant