'NLTK download ignores environment variables?
I'm trying to have a locally stored version of NLTK data that I use so that I don't have to re-download them everytime I switch environments. For this, I've read here that you can add an environment variable and the NLTK documentation details how I need to add my custom path to the path variable for the loading to work.
So I have installed the NLTK data to my custom folder, and in my Jupyter notebook I'm adding the folder to the NLTK_DATA environment variable, however, it seems to have 0 effect on where NLTK is looking for the data files:
How can I make sure that I add a custom path to my NLTK data, and add it to the environmental variables within Jupyter and make sure NLTK also looks in that folder?
[UPDATE] It's not just Jupyter, even though the documentation mentions it, NLTK seems to completely ignore any kinds of environmental variables, even ones saved in .env files.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

