Closed MartinoMensio closed 4 years ago
This line https://github.com/MartinoMensio/spacy-universal-sentence-encoder-tfhub/blob/e746687dcf084bd5cf7ad0e3012b6388d0fe92c7/setup.py#L2 makes the tfhub download the model to a folder during the installation of the package but then the models folder doesn't get copied when building the wheel. I need to investigate on how a package gets installed. In this way the model would be already downloaded in venv/lib/python3.7/site-packages/universal_sentence_encoder/models and every single run would use the cache.
models
venv/lib/python3.7/site-packages/universal_sentence_encoder/models
This line https://github.com/MartinoMensio/spacy-universal-sentence-encoder-tfhub/blob/e746687dcf084bd5cf7ad0e3012b6388d0fe92c7/setup.py#L2 makes the tfhub download the model to a folder during the installation of the package but then the
models
folder doesn't get copied when building the wheel. I need to investigate on how a package gets installed. In this way the model would be already downloaded invenv/lib/python3.7/site-packages/universal_sentence_encoder/models
and every single run would use the cache.