You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Return the hidden state vectors for the found spans (a new argument for inference API call) #381
Please return the hidden state vectors for all found spans when requested
Use case
Reusing GLiNER span embeddings as features for a downstream model: run zero-shot extraction, then feed the embedding of each detected span into a separate classifier/retrieval model, instead of re-encoding the span text with another encoder. The embeddings are already contextual and already aligned with the label space, so this is cheap and natural — if they were reachable.
Activity
Ingvarstep commentedon Sep 5, 2026
It was implemented and will be available in the next release soon, here is the documentation: https://urchade.github.io/GLiNER/usage.html#returning-contextual-vectors