Skip to content

Implementing GliNER in Haystack v2 Pipeline #8198

Answered by julian-risch
chaalia asked this question in Questions
Discussion options

You must be logged in to vote

Hi @chaalia out of the box Haystack only supports NER with the NamedEntityExtractor component with possible backends two NER backends: Hugging Face and spaCy. These two backends work with any HF or spaCy model that supports token classification or NER. https://docs.haystack.deepset.ai/docs/namedentityextractor
If you want to use GliNER, I suggest to create a custom component. We have instructions for how to do that here:
https://docs.haystack.deepset.ai/docs/custom-components

You can use the implementation of https://github.com/deepset-ai/haystack/blob/main/haystack/components/extractors/named_entity_extractor.py or https://github.com/deepset-ai/haystack/blob/main/haystack/components/gene…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by chaalia
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants