theirstory / gliner-spacy

A spaCy wrapper for GliNER
MIT License
91 stars 8 forks source link

Support for other languages #5

Closed AIMads closed 7 months ago

AIMads commented 7 months ago

Hey is it possible to change nlp pipeline initilisation with another language for example Danish with "da"?

wjbmattingly commented 7 months ago

Thanks for the comment! It should work natively for any language. You can use whichever blank pipeline you want, or spin up any spaCy model. There are several Danish models available from spaCy. I recommend disabling the ner or placing the gliner-spacy pipe before ner so that you can prioritize the gliner-spacy output.