anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Pulls entities, relations and structured records out of English text, and classifies it, from one schema, running locally on CPU, CUDA or MPS. It suits developers who build text extraction pipelines.
GLiNER2.5 Base is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install "gliner2[local]"
GLiNER2.5 Base is the English checkpoint of fastino's GLiNER2.5 family, built at DeBERTa-v3-base scale. One schema drives several jobs: named entities, text classification, structured records, relations and span attributes.
It runs on your own machine and needs no external API.
Developers and data teams who turn English text into labels, records and relations suit it best. It runs from Python.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | Backend developers | Extract people, companies and products from text | Mark entities in a news line with character offsets |
| Data operations | Data teams | Turn free text into structured records | Fill fields from a product description |
| Research | NLP researchers | Study schema-driven extraction with constrained decoding | Link entities and relations in one typed graph |
Anyone who works in other languages can skip it, because this checkpoint is English only. A separate multilingual checkpoint exists.
You run it in Python on your own computer.
| Use case | Who | What they get back |
|---|---|---|
| Entity extraction | Developers | Entities with text, offsets and confidence |
| Classification | Data teams | Labels for each text |
| Structured records | Data teams | Fields filled from free text |
| Entity-relation graphs | Researchers | Typed links between entities |
You need Python 3.10 or newer and the gliner2 package with its local extra, which pulls in PyTorch.
pip install "gliner2[local]"
pip install -U huggingface_hub hf download fastino/gliner2.5-base-v1
Always load this checkpoint with AutoExtractor. The older GLiNER2 loader is for span models and will not dispatch it.
from gliner2 import AutoExtractor
model = AutoExtractor.from_pretrained("fastino/gliner2.5-base-v1")
print(type(model).__name__)
print(model.config.architecture)
# BoundaryExtractor
# boundaryThen call extract_entities with a text and your labels. The two options below add a confidence score and character spans.
text = "Apple CEO Tim Cook announced iPhone 15 in Cupertino yesterday."
result = model.extract_entities(
text,
["company", "person", "product", "location"],
include_confidence=True,
include_spans=True,
)
print(result)| Tool | What it does |
|---|---|
| AutoExtractor | Loads the checkpoint and picks its architecture |
| extract_entities | Finds entities for the labels you give |
| Classifier | Applies label constraints across tasks |
| JointIE | Builds typed entity and relation graphs |
You pass a sentence about a company CEO announcing a phone in a city, with the labels company, person, product and location. Each match comes back with its text, character offsets and a confidence score.
Think of the model as a reader that marks up text for you. You say what to look for, and it returns the matches. Your first small try is the entity example above with a sentence of your own.
Under the hood, the boundary architecture pairs start and end points sparsely instead of scoring a fixed grid of span widths. Offsets are half-open character spans into your string. Constrained decoding adds cross-task label limits and typed entity-relation graphs. The record lists 194M parameters.
Two sibling checkpoints share the same public API, and this card covers only the base one.
| Model | Parameters | Encoder | Use case |
|---|---|---|---|
| gliner2.5-small-v1 | 74M | DeBERTa-v3-xsmall | Quick extraction and classification on a CPU |
| gliner2.5-base-v1 | 194M | DeBERTa-v3-base | The default English multi-task checkpoint |
| gliner2.5-multi-v1 | 287M | mDeBERTa-v3-base | The default multilingual multi-task checkpoint |
Pulls entities, relations and structured records out of English text, and classifies it, from one schema, running locally on CPU, CUDA or MPS. It suits developers who build text extraction pipelines.
Made by fastino on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: GLiNER2.5 Base is the English checkpoint of fastino's GLiNER2.5 family, built at DeBERTa-v3-base scale. One schema drives several jobs: named entities, text classification, structured records, relations and span attributes.
It runs on your own machine and needs no external API.
Who it suits: Developers and data teams who turn English text into labels, records and relations suit it best. It runs from Python.
Industry | Who uses it | How they use it | Example
Software | Backend developers | Extract people, companies and products from text | Mark entities in a news line with character offsets
Data operations | Data teams | Turn free text into structured records | Fill fields from a product description
Research | NLP researchers | Study schema-driven extraction with constrained decoding | Link entities and relations in one typed graph
Anyone who works in other languages can skip it, because this checkpoint is English only. A separate multilingual checkpoint exists.
Where to use it: You run it in Python on your own computer.
Use case | Who | What they get back
Entity extraction | Developers | Entities with text, offsets and confidence
Classification | Data teams | Labels for each text
Structured records | Data teams | Fields filled from free text
Entity-relation graphs | Researchers | Typed links between entities
How to set it up: You need Python 3.10 or newer and the gliner2 package with its local extra, which pulls in PyTorch.
pip install "gliner2[local]"
pip install -U huggingface_hub
hf download fastino/gliner2.5-base-v1
How to use it: Always load this checkpoint with AutoExtractor. The older GLiNER2 loader is for span models and will not dispatch it.
from gliner2 import AutoExtractor
model = AutoExtractor.from_pretrained("fastino/gliner2.5-base-v1")
print(type(model).__name__)
print(model.config.architecture)
# BoundaryExtractor
# boundary
Then call extract_entities with a text and your labels. The two options below add a confidence score and character spans.
text = "Apple CEO Tim Cook announced iPhone 15 in Cupertino yesterday."
result = model.extract_entities(
text,
["company", "person", "product", "location"],
include_confidence=True,
include_spans=True,
)
print(result)
Tool | What it does
AutoExtractor | Loads the checkpoint and picks its architecture
extract_entities | Finds entities for the labels you give
Classifier | Applies label constraints across tasks
JointIE | Builds typed entity and relation graphs
Example: You pass a sentence about a company CEO announcing a phone in a city, with the labels company, person, product and location. Each match comes back with its text, character offsets and a confidence score.
For newcomers and experts: Think of the model as a reader that marks up text for you. You say what to look for, and it returns the matches. Your first small try is the entity example above with a sentence of your own.
Under the hood, the boundary architecture pairs start and end points sparsely instead of scoring a fixed grid of span widths. Offsets are half-open character spans into your string. Constrained decoding adds cross-task label limits and typed entity-relation graphs. The record lists 194M parameters.
Your text and a schema or labels
The boundary extractor pairs start and end points
Constrained decoding applies label rules
Matches come back with offsets and scores
Good to know: Two sibling checkpoints share the same public API, and this card covers only the base one.
Title: The GLiNER2.5 family
Model | Parameters | Encoder | Use case
gliner2.5-small-v1 | 74M | DeBERTa-v3-xsmall | Quick extraction and classification on a CPU
gliner2.5-base-v1 | 194M | DeBERTa-v3-base | The default English multi-task checkpoint
gliner2.5-multi-v1 | 287M | mDeBERTa-v3-base | The default multilingual multi-task checkpoint
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download fastino/gliner2.5-base-v1
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 6 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| GLiNER2.5 Base This page | 132,027 | 43 | 194M | apache-2.0 | |
| GLiNER2.5 MultiShares boundary-extraction · information-extraction · gliner2 | 88,821 | 300 | 287M | apache-2.0 | |
| UltraBERT-150M-clairic-extractionShares information-extraction · transformers · safetensors | 138 | 5 | 151M | apache-2.0 | |
| GLiNER2.5-DecideShares gliner2 · transformers · safetensors | 89,759 | 457 | 486M | apache-2.0 | |
| GLiNER2.5-multi-DecideShares gliner2 · transformers · safetensors | 12,037 | 74 | 287M | apache-2.0 | |
| GLiNER2 baseShares gliner2 · safetensors | 353,994 | 106 | 208M | apache-2.0 |
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.