GLiNER

Generalist model for named entity recognition using bidirectional transformer.

Open SourceSelf HostedOffline Capable
0.0 (0)

About

GLiNER performs named entity recognition without fixed entity types: you supply arbitrary type labels at inference time and a compact bidirectional transformer encoder finds matching spans, a zero-shot approach that avoids retraining for every new schema. Beyond standard NER the framework covers streaming extraction, joint entity and relation extraction, PII detection, and multi-task token classification across more than 100 languages. Several architectures are available, including a bi-encoder that encodes text and labels separately so large entity type libraries scale, plus uni-encoder and decoder-based variants. Models stay small enough for CPU deployment on consumer hardware, and the project supports torch.compile, FP16 and INT8 quantization, ONNX export, and production serving through Ray Serve with dynamic batching. Created by Urchade Zaratiana and collaborators and released under the Apache 2.0 license, it suits teams that need custom extraction without LLM-scale inference costs.

Should you use GLiNER?

Pick it when

Pick GLiNER when you need entities outside a fixed schema, such as contract parties, drug names, or custom PII types named at inference time, and want it running on CPU or small GPUs instead of paying for LLM calls per document.

Look elsewhere when

Skip it when you need a full linguistic pipeline with tokens, POS tags and parses, where spaCy or Stanza fit, or schema-shaped records from long documents with source offsets, which LangExtract handles with an LLM.

Alternatives to GLiNER

  • spaCy

    Fast trained pipelines with parsing and POS tags alongside NER, but entity types stay fixed until you annotate data and retrain.

  • LangExtract

    LLM-driven extraction of structured records with exact source offsets for richer schemas, but each run costs API calls or a local Ollama model.

  • Presidio

    Adds regex, checksum validation and redaction operators on top of detection, and can load GLiNER as one of its recognizers; GLiNER alone leaves masking to you.

  • Flair NLP

    Trains taggers on your own labeled data with stackable embeddings, worth it when the schema is fixed and you can afford annotation.

Reviews (0)

Leave a Review

No reviews yet. Be the first to review!

Details

Price
Free
Platform
Local/Desktop
Difficulty
Easy (2/5)
License
Apache-2.0
Added
Apr 3, 2026

Tags