Skip to content
StackDecode
AI & ML Atlas
Artificial IntelligencealgorithmInteractive simulation

Named Entity Recognition

Finds and labels names of people, places, organisations and dates in text.

The idea

NER marks spans such as "Ada Lovelace" (PERSON) or "London" (PLACE). Classic systems used gazetteers and hand rules; later ones used CRFs; today fine-tuned transformers tag every token with labels like B-PER, I-PER and O.

Watch it run

This is a real computation, not a drawing. Pause, step, change the settings, or try new random data.

PriyajoinedGoogleinLondononMonday
  • PERSON
  • O
  • ORG
  • PLACE
  • DATE

Named-entity recognition finds the people, organisations, places and dates in a sentence. Here a list of known names does the job.

1/9

Each colour is a different tag.

Step by step

  1. 1Tokenise the sentence.
  2. 2Compute features or contextual embeddings for each token.
  3. 3Predict a label for each token (B- begins an entity, I- continues it, O is outside).
  4. 4Merge consecutive labels into entity spans.

Where it is used

Information extraction, search, redaction of personal data.

Watch out for

Ambiguity ("Washington" the person, the state or the city) and new names unseen in training.

Related