gliner spacy import (gliner_spacy) broken
Running the code in the example notebook (https://github.com/urchade/GLiNER/blob/main/examples/gliner_spacy_demo.ipynb) fails.
`--------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) Cell In[5], line 3 1 import spacy 2 from gliner import GLiNER ----> 3 from gliner_spacy.pipeline import GlinerSpacy
ModuleNotFoundError: No module named 'gliner_spacy'`
Either the example code or the package's code seems broken? (Importing GLiNER works, and spacy with other things also works)
Additionally, running the next cell in the example notebook also breaks;
`import spacy from gliner import GLiNER
nlp = spacy.load("en_core_web_sm") nlp.add_pipe("gliner_spacy")`
ValueError: [E002] Can't find factory for 'gliner_spacy' for language English (en). This usually happens when spaCy calls nlp.create_pipe with a custom component name that's not registered on the current language class. If you're using a custom component, make sure you've added the decorator @Language.component (for function components) or @Language.factory (for class components).
I'm not affiliated with the GLiNER project, but I assume you've installed the glincer_spacy module?
pip install gliner-spacy
https://github.com/theirstory/gliner-spacy
Hello. I maintain gliner-spaCy. As @DomHudson pointed out, you need to install gliner-spacy separately for it to work.