GLiNER
is a Named Entity Recognition (NER) model capable of identifying
any
entity type in a
zero-shot
manner.
This architecture combines:
An
encoder
for representing entity spans
A
decoder
for generating label names
This hybrid approach enables new use cases such as
entity linking
and expands GLiNER’s capabilities.
By integrating large modern decoders—trained on vast datasets—GLiNER can leverage their
richer knowledge capacity
while maintaining competitive inference speed.
Key Features
Open ontology
: Works when the label set is unknown
Multi-label entity recognition
: Assign multiple labels to a single entity
Entity linking
: Handle large label sets via constrained generation
Knowledge expansion
: Gain from large decoder models
Efficient
: Minimal speed reduction on GPU compared to single-encoder GLiNER
Installation
Update to the latest version of GLiNER:
# until the new pip release, install from main to use the new architecture
pip install git+https://github.com/urchade/GLiNER.git
Usage
If you need an open ontology entity extraction use tag
label
in the list of labels, please check example below:
from gliner import GLiNER
model = GLiNER.from_pretrained("knowledgator/gliner-decoder-large-v1.0")
text = "Hugging Face is a company that advances and democratizes artificial intelligence through open source and science."
labels = ["label"]
model.predict_entities(text, labels, threshold=0.3, num_gen_sequences=1)
If you need to run a model on many text and/or set some labels constraints, please check example below:
from gliner import GLiNER
model = GLiNER.from_pretrained("knowledgator/gliner-decoder-large-v1.0")
text = (
"Apple was founded as Apple Computer Company on April 1, 1976, ""by Steve Wozniak, Steve Jobs (1955–2011) and Ronald Wayne to ""develop and sell Wozniak's Apple I personal computer."
)
labels = ["person", "company", "date"]
model.run([text], labels, threshold=0.3, num_gen_sequences=1)
gliner-decoder-large-v1.0 huggingface.co is an AI model on huggingface.co that provides gliner-decoder-large-v1.0's model effect (), which can be used instantly with this knowledgator gliner-decoder-large-v1.0 model. huggingface.co supports a free trial of the gliner-decoder-large-v1.0 model, and also provides paid use of the gliner-decoder-large-v1.0. Support call gliner-decoder-large-v1.0 model through api, including Node.js, Python, http.
gliner-decoder-large-v1.0 huggingface.co is an online trial and call api platform, which integrates gliner-decoder-large-v1.0's modeling effects, including api services, and provides a free online trial of gliner-decoder-large-v1.0, you can try gliner-decoder-large-v1.0 online for free by clicking the link below.
knowledgator gliner-decoder-large-v1.0 online free url in huggingface.co:
gliner-decoder-large-v1.0 is an open source model from GitHub that offers a free installation service, and any user can find gliner-decoder-large-v1.0 on GitHub to install. At the same time, huggingface.co provides the effect of gliner-decoder-large-v1.0 install, users can directly use gliner-decoder-large-v1.0 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
gliner-decoder-large-v1.0 install url in huggingface.co: