# Information extraction

> Canonical: https://skillalmanac.com/glossary/information-extraction | Last verified: 2026-11-25 | Index status: index-eligible

Information extraction (IE) is the automated process of turning unstructured or semi-structured text, such as articles or emails, into structured data, for example names, dates, amounts and the relations between them.

Also called: IE, information extraction NLP, structured data extraction LLM.

## In plain language

Information extraction is pulling facts out of free text and putting them in a table. Given a news story, it might fill in the company, the price change and the date. Given a stack of emails, it might list who asked for what by when. It saves retyping and makes text searchable and sortable. It can miss facts, pick the wrong one when two are close, or invent a value if a language model is doing the work. Dates like Friday need context to become real dates. Check a sample of the output against the originals before you load it into anything that matters.

## Technical definition

The Stanford textbook Speech and Language Processing says information extraction turns the unstructured information embedded in texts into structured data, for example to populate a relational database. Its chapter covers relation extraction, event extraction, normalizing temporal expressions onto calendar dates, and template filling. IBM describes named entity recognition, relation extraction and event extraction as tasks, and rule-based, supervised classification, sequence labeling and hybrid techniques. With a general language model the task is often done by prompting for output in a fixed format such as JSON.

## How it shows up when you use agents

Much agent work is information extraction: read an email thread, a log or a web page and return fields a script can use. In Claude Code or Codex you might ask for a list of dates and owners from meeting notes as JSON. Pattern-based skills handle fixed shapes such as URLs, dates and invoice totals. A language model handles looser text, such as who agreed to what. Finding names and organisations is [named entity recognition](/glossary/named-entity-recognition), one task inside the wider field. A [knowledge graph](/glossary/knowledge-graph) is one place extracted relations can end up.

What breaks when it is misunderstood: model output is read as fact. A model can skip a field or fill one with a plausible guess, and a relative date like Friday is wrong without the document's date. The next action is to validate output against a schema, keep the source line or quote beside every value, and compare a sample with the originals. For scanned files, [intelligent document processing](/glossary/intelligent-document-processing) adds the steps before extraction.

## Common confusions

- **Information extraction versus information retrieval.** Retrieval finds documents. Extraction pulls facts out of them.
- **Information extraction versus named entity recognition.** Recognition finds and types the names. Extraction goes further, to relations, events and times.
- **Pattern rules versus models.** Rules suit fixed formats and are predictable. Models cope with free wording but can be wrong in ways that are harder to spot.
- **Myth.** A model that returns valid JSON has returned correct data. Valid format says nothing about whether each value matches the source.

## Worked examples in this catalogue

### [text-entity-extractor](https://skillalmanac.com/skills/skill-almanac/text-entity-extractor)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: URLs, hashtags, @mentions and ISO or numeric dates pulled from one plain UTF-8 text file, with counts, first line and every line number reported.

Why it exercises the concept: It extracts a fixed set of entity types by pattern. It does not find people or organisations.

### [invoice-text-field-extractor](https://skillalmanac.com/skills/skill-almanac/invoice-text-field-extractor)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The invoice number, dates, currency symbols, subtotal, tax, total and line items taken from extracted invoice text, with each field's source reported.

Why it exercises the concept: It is field extraction for one document type, and reporting each field's source is how you check the result against the original.

### [html-table-extractor](https://skillalmanac.com/skills/skill-almanac/html-table-extractor)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Tables from one local HTML file written to JSON or CSV, with merged cells, ragged rows and missing headers reported.

Why it exercises the concept: It turns semi-structured markup into structured data. The reports show where the source was ambiguous instead of hiding it.

## Related terms

- [Natural language processing (NLP)](https://skillalmanac.com/glossary/natural-language-processing.md)
- [Named entity recognition (NER)](https://skillalmanac.com/glossary/named-entity-recognition.md)
- [Large language model (LLM)](https://skillalmanac.com/glossary/large-language-model.md)
- [Knowledge graph](https://skillalmanac.com/glossary/knowledge-graph.md)
- [Intelligent document processing (IDP)](https://skillalmanac.com/glossary/intelligent-document-processing.md)

## Sources

- [Information Extraction: Relations, Events, and Time (Speech and Language Processing, chapter 21)](https://web.stanford.edu/~jurafsky/slp3/21.pdf), Stanford University (Jurafsky and Martin) (accessed 2026-11-24)
- [What is information extraction?](https://www.ibm.com/think/topics/information-extraction), IBM (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-25. [Glossary index](https://skillalmanac.com/glossary.md).
