GLiNERLinkExtractor#

Beta

This feature is in beta. It is actively being worked on, so the API may change.

Link documents with common named entities using GLiNER.

GLiNER is a Named Entity Recognition (NER) model capable of identifying any entity type using a bidirectional transformer encoder (BERT-like).

The GLiNERLinkExtractor uses GLiNER to create links between documents that have named entities in common.

Example:

extractor = GLiNERLinkExtractor(
    labels=["Person", "Award", "Date", "Competitions", "Teams"]
)
results = extractor.extract_one("some long text...")
Parameters:
  • labels (List[str]) –

  • kind (str) –

  • model (str) –

  • extract_kwargs (Dict[str, Any] | None) –