Named entity recognition: Find and classify names in text
Learn how NER marks the boundaries and types of names, and how to design labels, test sets, and error checks for real use.
Named entity recognition: Find and classify names in text
Named entity recognition (NER) finds the text span that names a person, organization, place, or another defined entity, then assigns it a type. From “Minseo works at a new research center in Busan,” a system might label “Minseo” as a person, “Busan” as a location, and “new research center” as an organization. Identifying the mention is different from identifying which real-world entity it refers to; that second task is entity linking.
Decide what counts as an entity
NER output depends on its label schema. A basic scheme may distinguish persons (PER), organizations (ORG), and locations (LOC); some datasets group other names under miscellaneous (MISC). A task may add dates, products, laws, diseases, or amounts. There is no single label list for every dataset or use.
Write guidelines for:
**What to include:** names, titles, teams, products, or events.
**Span boundaries:** whether to mark a full phrase such as “Seoul National University Hospital” as one organization or split it.
**Ambiguity:** “Apple announced a chip” names a company; “I ate an apple” uses a common noun.
**Nested or adjacent names:** decide whether to annotate one or multiple overlapping spans, and where neighboring names split.
**Uncertainty:** define when to leave a mention untyped or send it for review rather than guess.
The CoNLL-2003 shared task used four classes—person, location, organization, and miscellaneous—in English and German data. A prediction counted as correct only when both its exact boundaries and type matched. This is a historical example, not a universal modern standard.
Prepare before deployment
**Set the use and error cost.** News search, customer records, and clinical documents need different labels and review. If output triggers an action, require stricter human checks.
**Collect representative text.** Match the deployment language, domain, style, and document length. Check for duplicate documents and entity leakage across train, development, and test splits; random splits can overstate generalization when the same names occur in both training and testing.
**Write annotation guidance.** Give each label inclusion, exclusion, span, and uncertainty examples. Have reviewers independently annotate a small sample and resolve disagreements.
**Compare candidates consistently.** Rules or dictionaries can help with fixed formats. Trained and generative models can use context but may omit names, overextend boundaries, or invent types. Compare them on the same labeled examples.
**Keep evidence traceable.** Store the extracted span, type, document ID, and source location. Route low-confidence, high-impact fields for review instead of automatic action.
Multilingual NER does not transfer uniformly from English. Writing systems, spacing, morphology, capitalization, and naming conventions vary, as can label schemas. Universal NER introduced 19 datasets across 13 languages with a cross-lingually consistent annotation schema. Such benchmarks support comparison, but do not guarantee quality in every region or domain.
Evaluate boundaries and types
Precision is the share of predicted entities that are correct; recall is the share of reference entities found. F1 summarizes their balance. Strict evaluation requires both the span boundaries and type to match. Separate missed entities, false detections, boundary errors, and type confusions to see what to fix. Research also notes that strict span scoring can count a boundary-and-type mismatch twice even when the prediction is close to the reference.
| Use | Test and review |
|---|---|
| One specialist domain | Include domain names and writing styles |
| A new language or region | Report results per language and inspect local edge cases |
| New names appear often | Test entities absent from training data |
| Output triggers recording or action | Review costly error types and uncertain predictions |
Do not approve a system from one score. Test new names, unfamiliar context, overlapping person and organization names, and spelling variation. After deployment, review samples of boundary and type errors, and rerun evaluation when labels or data change. NER marks where a name appears and what type it is; fit for use depends on suitable labels, consistent annotation, language- and domain-specific tests, source traceability, and error review.
References
Tjong Kim Sang & De Meulder, [CoNLL-2003 Shared Task](https://aclanthology.org/W03-0419/), 2003.
Mayhew et al., [Universal NER](https://aclanthology.org/2024.naacl-long.243/), NAACL 2024.
Ortmann, [Fine-Grained Error Analysis and Fair Evaluation of Labeled Spans](https://aclanthology.org/2022.lrec-1.150/), LREC 2022.
[Random Splitting Negatively Impacts NER Evaluation](https://aclanthology.org/2025.findings-acl.504/), ACL Findings 2025.