Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💫 Vector names not handled correctly by package command #3067

Closed
ines opened this issue Dec 19, 2018 · 2 comments
Closed

💫 Vector names not handled correctly by package command #3067

ines opened this issue Dec 19, 2018 · 2 comments
Labels
bug Bugs and behaviour differing from documentation feat / cli Feature: Command-line interface feat / vectors Feature: Word vectors and similarity models Issues related to the statistical models

Comments

@ines
Copy link
Member

ines commented Dec 19, 2018

First reported on the Prodigy forum:

You were right, that was caused by wrong meta.json, which was generated after spacy package ... --create-meta, without vector names: "vectors":{ "width":XYZ, "vectors":XYZ, "keys":XYZ} . I compared that with meta.json automatically generated from prodigy textcat.batch-train ... en_core_web_md where vector info is stored in following format: "vectors":{... , "name":"en_core_web_md.vectors"}

I just copied automatically generated meta.json, changed model name to my unique and was able to load my custom model with vectors inside prodigy commands :)

This caused the following error:

OSError: [E050] 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.
@ines ines added bug Bugs and behaviour differing from documentation models Issues related to the statistical models feat / vectors Feature: Word vectors and similarity feat / cli Feature: Command-line interface labels Dec 19, 2018
@ines ines changed the title Vector names not handled correctly by package command 💫 Vector names not handled correctly by package command Dec 19, 2018
@ines
Copy link
Member Author

ines commented Dec 27, 2018

Merging this with #3093!

@lock
Copy link

lock bot commented Jan 26, 2019

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.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bugs and behaviour differing from documentation feat / cli Feature: Command-line interface feat / vectors Feature: Word vectors and similarity models Issues related to the statistical models
Projects
None yet
Development

No branches or pull requests

1 participant