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

offline installation #6375

Closed
geoHeil opened this issue Nov 11, 2020 · 4 comments
Closed

offline installation #6375

geoHeil opened this issue Nov 11, 2020 · 4 comments
Labels
install Installation issues models Issues related to the statistical models

Comments

@geoHeil
Copy link

geoHeil commented Nov 11, 2020

I have downloaded the spacy models and placed them all into /path/to/folder/spacy as tar.gz zipped files.

Then I have untarred: tar -xvf de_core_news_sm-2.3.0.tar.gz.

When trying to use the models in spacy:

import spacy
nlp = spacy.load('/path/to/folder/spacy/de_core_news_sm-2.3.0')

it fails:

FileNotFoundError: [Errno 2] No such file or directory: '/path/to/folder/spacy/de_core_news_sm-2.3.0/tokenizer'

Do I need to perform an alternative (manual) installation of the models which unpack & create the missing tokenizer folder.

@adrianeboyd
Copy link
Contributor

You can install the model with pip install de_core_news_sm-2.3.0.tar.gz and then load from the package name as de_core_news_sm.

If you want to unpack the archive and load from a path, the actual model directory you want to load is two levels deeper in the package at /path/to/folder/spacy/de_core_news_sm-2.3.0/de_core_news_sm/de_core_news_sm-2.3.0.

@adrianeboyd adrianeboyd added install Installation issues models Issues related to the statistical models resolved The issue was addressed / answered labels Nov 11, 2020
@geoHeil
Copy link
Author

geoHeil commented Nov 11, 2020

Great. This works. Any chance you would plan to put them to pypy or conda so the installation is more native / does not require working around firewalling / proxy but works via the default tooling?

@github-actions github-actions bot removed the resolved The issue was addressed / answered label Nov 11, 2020
@adrianeboyd
Copy link
Contributor

No, the main problem is that the models are too large for this to be practical. See the discussion here: #5967

@geoHeil geoHeil closed this as completed Nov 11, 2020
@github-actions
Copy link
Contributor

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
install Installation issues models Issues related to the statistical models
Projects
None yet
Development

No branches or pull requests

2 participants