theirstory / gliner-spacy

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

Add configuration example in readme #3

Closed tcambon closed 7 months ago

tcambon commented 8 months ago

I suggest to add an example on how to specify spacy configuration in the readme example.

Something like: custom_spacy_config = { "gliner_model": "urchade/gliner_multi", "chunk_size": 250, "labels": ["people","company","punctuation"], "style": "ent" } nlp = spacy.blank("en") nlp.add_pipe("gliner_spacy", config=custom_spacy_config)

mccahill commented 8 months ago

This would be great to have in the README - seeing this example saved me some time

wjbmattingly commented 7 months ago

Thank you both for this! I'll update the README shortly!

wjbmattingly commented 7 months ago

I have added this to the README, thanks again!