I’ve been training a TextCategorizer and added it to the pipeline of an existing spacy_core_web_lg model. Because I want to use this model in prodigy, i decided to package it according to the following method:
- use the nlp.to_disc() method to store the model.
- using the command line option python -m spacy package to create a package
- subsequently creating a package with python setup.py sdist
- Finally, installing the created tar.gz package with pip install (packagename)
This all works perfectly, as long as I do not change the name of the model in meta.json. When I do that, I get the following error message when loading the model into python:
Can’t find model ‘en_core_web_lg.vectors’. It doesn’t seem to be a shortcut link, a Python package or a valid path to a data directory.
This can be solved by loading en_core_web_lg separately, but that does not allow me to load the model into prodigy. Even manually setting the name of the vectors in meta.json does not work for me. Could you advice on how to solve above problem and rename the model name? As a quick fix, i will simply overwrite the existing en_core_web_lg model, though that will be inconvenient in the long term.
Many thanks for this great application!