Closed tcambon closed 7 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)
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)
This would be great to have in the README - seeing this example saved me some time
Thank you both for this! I'll update the README shortly!
I have added this to the README, thanks again!
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)