G-02 · AI · 1 min read

How to extract names, dates and amounts from text with AI

Pull people, companies, dates, amounts or any custom labels out of text with GLiNER2 in your browser, then export the results as JSON.

Fig. G-02 · AI

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

  1. Open the AI entity extractor and paste your text.
  2. Pick a preset (general, contracts, résumés, personal data) or choose Custom labels and type your own, such as drug, dosage, side effect.
  3. Click Extract entities. The first run downloads the model once.
  4. Review the highlights. Each match shows its label and confidence.
  5. Move the confidence slider: lower finds more, higher gives fewer false positives.
  6. 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.

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.

FAQ

Common questions.

01Which languages work?

The multilingual GLiNER2 model handles over 100 languages, including mixed-language text.

02How long can the text be?

Any length. Long texts are processed in overlapping windows of about 180 words and the results are merged.

03Is the text sent to a server?

No. The model runs in your browser and the text stays on your device.