uses importlib.resources to load files from inside a package (more info on this change can be found here)
changes the default model cache directory from path/to/package/models to ~/.cache/spacy_udpipe_models and allows users to specify a different cache directory via environment variables or by passing a different models_dir to spacy_udpipe.download.
This PR:
importlib.resources
to load files from inside a package (more info on this change can be found here)path/to/package/models
to~/.cache/spacy_udpipe_models
and allows users to specify a different cache directory via environment variables or by passing a differentmodels_dir
tospacy_udpipe.download
.