# Named entity recognition (NER)

> Named entity recognition is a natural language processing technique that finds and labels specific items in text, such as people, companies, places, dates, amounts and product codes, so they can be extracted, linked or redacted.

Also called: NER, entity extraction, entity recognition, entity tagging. Category: Data and retrieval. Source: https://aibuildindex.com/glossary/named-entity-recognition

## In the index

- Document data extraction: median $1,400, middle half $250 to $5,000, 423 priced briefs (https://aibuildindex.com/cost/document-data-extraction)
- Natural language processing: median $3,000, middle half $500 to $9,440, 1,428 priced briefs (https://aibuildindex.com/skills/natural-language-processing)

Named entity recognition, or NER, picks out the names and values that matter in a block of text. In "Acme Ltd agreed to pay Jane Smith on 3 March", it marks Acme Ltd as an organisation, Jane Smith as a person and 3 March as a date. For a business buyer it is the step that turns contracts, emails and notes into fields a system can use, and it is central to finding and hiding personal information.

## How it works

Classic NER models read text token by token and tag each one as the start, middle or outside of an entity of a given type. Libraries such as spaCy ship with general models for common types like person, organisation and location. For business-specific entities, such as policy numbers, drug names or part codes, builders train or adapt a model on labelled examples, or add pattern rules for items with a fixed format.

Language models can also do NER from a prompt: describe the entity types, pass the text, and ask for [structured output](https://aibuildindex.com/glossary/structured-output). This works well on varied documents with little setup but is slower and costlier per document. Many builds combine both: rules for strict formats, a model for names and context.

A common example is redaction. A legal team wants to share case documents with an outside party, so the build runs [OCR](https://aibuildindex.com/glossary/ocr) on scans, uses NER to find names, addresses and account numbers, replaces them with placeholders, and sends uncertain cases to a reviewer.

## What it means for cost

The effort depends on how unusual your entities are and what a miss costs:

- **Entity types.** General types are close to free; domain-specific ones need labelled examples and testing.
- **Recall requirements.** For redaction of [personal data](https://aibuildindex.com/glossary/personal-data), missing one name can be a breach, so the build needs high recall, review queues and audit logs.
- **Linking.** Recognising "Acme" is easier than knowing it is the same company as "Acme Holdings Ltd" in your CRM. Entity linking adds real work, and may feed a [knowledge graph](https://aibuildindex.com/glossary/knowledge-graph).
- **Document quality.** Poor scans and odd layouts lower accuracy before NER even starts.

Ask a builder which entity types they will support, how they will test recall on your documents, and what happens to entities the system is unsure about.

## Common questions

### Is NER the same as data extraction?

It is one part of it. NER finds entities wherever they occur in free text. [Data extraction](https://aibuildindex.com/glossary/data-extraction) more broadly fills a defined set of fields, such as invoice total or contract end date, which often needs NER plus layout understanding and validation.

### Can NER find personal data reliably enough for compliance?

It can find most of it, but no automated system should be assumed perfect. Builds used for compliance usually combine NER with pattern rules, set thresholds to favour catching too much over too little, and include human review for sensitive releases.

## Related terms

- [Natural language processing (NLP)](https://aibuildindex.com/glossary/natural-language-processing): Natural language processing is the field of computing that lets software read, interpret and produce human language, covering tasks such as classification, translation, summarisation, entity extraction and question answering.
- [Data extraction](https://aibuildindex.com/glossary/data-extraction): Data extraction is the process of pulling specific fields or records out of unstructured or semi-structured sources, such as documents, emails, web pages or transcripts, and returning them in a consistent, structured format.
- [Personal data (PII)](https://aibuildindex.com/glossary/personal-data): Personal data is any information that relates to an identifiable living person, such as a name, email address, phone number, location or customer ID; in the US it is often called personally identifiable information, or PII, and its handling is governed by data protection law.
- [Knowledge graph](https://aibuildindex.com/glossary/knowledge-graph): A knowledge graph stores information as entities, such as customers, products or contracts, and the named relationships between them, so that software and AI systems can answer questions that need several connected facts.
- [Optical character recognition (OCR)](https://aibuildindex.com/glossary/ocr): Optical character recognition is technology that reads printed or handwritten text from images and scanned documents and turns it into machine-readable text that software can search, extract from or pass to a language model.
