Skip to content
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.

Different loading mechanism for spacy models #212

Open
jsbaan opened this issue Feb 18, 2020 · 1 comment
Open

Different loading mechanism for spacy models #212

jsbaan opened this issue Feb 18, 2020 · 1 comment

Comments

@jsbaan
Copy link
Collaborator

jsbaan commented Feb 18, 2020

Custom NER models do not return entities when loaded with spacy.blank(language).from_disk(model_path), but do with spacy.load(model_path)

@shyamcody
Copy link

@AIJoris spacy.blank(language) loads an empty model so it will not be able to return entities. On another hand, spacy.load(model_path) should load the model with a pre-trained ner model. So that should behave normally.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants