question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Specify different location for data download

See original GitHub issue

For v0.99, I can’t seem to figure out how to specify a different location in which to download the data, for instance, I’d like it to go in mnt/data/spacy/en instead of the default location. I’ve tried install_data, but can’t quite get it to work.

Is this possible?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
henningpeterscommented, Feb 15, 2016

In spaCy 0.100.2 we introduced an official way to programmatically control the location of installed models:

import sputnik
import spacy
sputnik.install('spacy', spacy.about.__version__, 'en_default', data_path=data_path)
nlp = spacy.load('en_default', via=data_path)

where data_path is your custom model directory.

Please note that sputnik.install() will download the model first in case its not already installed.

Does this fit your original use-case well enough?

0reactions
lock[bot]commented, May 9, 2018

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Specify Where Files Are Downloaded
To select a different download folder location: ... 2. Under General > Downloads, click the Browse button, then select the folder where the...
Read more >
How To Change The Download Location In Windows 10
Click on the "Storage" option. Under the "More storage settings", click on the "change where new content is saved". Now, choose the location...
Read more >
How to Change the Default Save Location on Windows 10 ...
Launch the File Explorer. Expand Quick Access and right-click on Downloads. Click on Properties. Now select the Locations tab from here, and ...
Read more >
How to Change the Default Download Location in Windows 10
From File Explorer, right-click the Downloads folder and select Properties > Location, then type the desired location into the text field and ...
Read more >
How to Change Download Location in Windows Server
A list of destination folders comes up as seen below. Click on This PC to choose your new preferred download location.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found