Skip to content
All tutors

Named entity recognition in practice

Extract people, places, organisations and custom entities from text, and evaluate the results properly

By Skill Lab Intermediate NLP New

Your first 3 replies from the tutor are free. Then you can continue the lesson for $7 from your credit.

A taste of a lesson

One question and the answer, as this tutor gives it.

Named entity recognition in practice AI tutor following Skill Lab's plan
Student:

My NER model has 97 percent token accuracy but extracted company names are often cut off. Why the gap?

Tutor:

Token accuracy is dominated by O tokens, the words that are not entities, so a model can score very high while still getting entity boundaries wrong. Switch to entity level evaluation with strict matching: a company name predicted as 'Global Freight' when the gold span is 'Global Freight Ltd' counts as a miss. Then look at the errors: are suffixes like Ltd inconsistently labelled in your guidelines, or are long names split into many subwords? Quick exercise: under strict scoring, how many false positives and false negatives does that one truncated prediction create?

Written with AI under Skill Lab's direction as an example. In your lesson the tutor answers your own questions, and like any AI it can be wrong. Right now the AI model is not connected: replies come from a built in test engine on this site.

What you will be able to do

  • Tag text with the BIO scheme and align labels with subword tokens
  • Write annotation guidelines that settle boundary and nesting decisions
  • Evaluate NER at entity level with strict and partial matching
  • Choose between a fine tuned tagger and LLM extraction for a project
  • Explain entity linking and the limits of automated personal data detection

Lesson plan

6 lessons. Pick one to start there.

  1. 1 Entities and the BIO scheme Represent entity spans as token labels and tag example sentences by hand. Start
  2. 2 Guidelines and hard boundaries Write rules for titles, abbreviations, nesting and other boundary cases. Start
  3. 3 Subword alignment in transformer taggers Map word level labels to subword tokens and back without losing entities. Start
  4. 4 Entity level evaluation Score predictions at entity level with strict and partial matching. Start
  5. 5 Fine tuned taggers versus LLM extraction Compare approaches on accuracy, cost, speed and maintenance for your case. Start
  6. 6 Linking entities and handling personal data Connect mentions to real records and understand the limits of PII detection. Start

Try asking

Tap a question to start a lesson with it.

About this tutor

For learners with basic NLP knowledge who need to pull structured information out of text: names, organisations, products, dates, drug names or any custom entity type. You will learn BIO tagging, how transformer taggers deal with subword tokens, and why nested and overlapping entities complicate things. You will write annotation guidelines, compare entity level evaluation in strict and partial modes, and decide between fine tuning a tagger and prompting a large language model for extraction. The course also covers linking entities to a knowledge base and the limits of automatic detection of personal data, with examples in several languages and scripts.

Reviews

Students can review a tutor after a paid lesson. Nobody has yet.