Entity extraction turns free text into structured facts: who, which company, where, when, how much. Generative chatbots can do it, but they sometimes invent values. An extraction model such as GLiNER2 can only point at spans of your own text, which makes it more reliable for this job, and it runs in your browser in milliseconds.
Step by step
- Open the AI entity extractor and paste your text.
- Pick a preset (general, contracts, résumés, personal data) or choose Custom labels and type your own, such as
drug, dosage, side effect. - Click Extract entities. The first run downloads the model once.
- Review the highlights. Each match shows its label and confidence.
- Move the confidence slider: lower finds more, higher gives fewer false positives.
- Copy or download the JSON, which includes the exact character offsets of each entity.
Why labels are just words
GLiNER2 reads the label names and their short descriptions as part of its input, then scores every span of up to eight words against each label. That is why it handles types it was never trained on: "invoice number" and "dosage" are understood from the words themselves. Good labels are short and concrete; a description such as "a payment card number" helps more than a code like PAN.
Three related jobs
| Job | Tool | What comes out |
|---|---|---|
| Highlight entities | Entity extractor | Spans with labels and confidence |
| Mask personal data | PII redactor | The same text with [EMAIL], [PHONE]… |
| Fill a schema | Data extractor | One JSON object with your fields |
Note The PII redactor combines the model with exact patterns for emails, phone numbers, card numbers and IP addresses, because each catches cases the other misses.