Information Extraction — Turning Text into Structured Records

Machine Learning
Type
NLP structured-information task

What does it do?

Information extraction (IE) is a natural-language-processing task that converts unstructured text into structured records, such as events, relations, and attributes, so that facts in free-form documents can be queried like database rows.

Cowie and Lehnert (1996) present IE as a step that follows information retrieval: retrieval collects relevant documents, and extraction refines their content into structured form.

The intuition behind the method

A document states facts in free-form prose, but a database needs fixed rows and fields. An information extraction system reads the text the way an analyst would, marking who did what, to what, and when, and then writes those markings into a predefined schema. The result is a set of records in which the entities, the relations between them, and their attributes can be compared across many documents.

History

Cowie and Lehnert (1996) describe information extraction as a relatively new development, placed alongside information retrieval and information filtering as ways of bringing order to large volumes of text. In their framing, retrieval finds the relevant material and extraction transforms it into structured content.

When to use it

Choose information extraction when your text contains facts you need in structured form, such as events with their participants, relations between entities, or attributes of items, and when you can state in advance which entity types, relations, and attributes matter. A rough guideline is at least fifty documents; treat this as an approximate threshold rather than a firm rule. Do not choose it if you only need to find relevant documents, since that is an information retrieval task. Also avoid it if you need only labels on entities with no relations, where named-entity recognition may be sufficient, or if no schema can be agreed, because the extractor has no target without one.

Limitations and considerations

  • Facts outside the ontology are not captured at all, so the quality of the schema limits what the records can contain.
  • Extraction quality depends on how well the schema and patterns match the vocabulary and phrasing of the corpus; a schema written for one style of writing may miss relations expressed in another.
  • Trained components need annotated examples. These are obtained by having human experts highlight entities and relations in text with detailed annotations, which is time-consuming and expensive, and in some domains, such as gene and disease mentions in biomedical text, it requires high-level expertise. Rule components need patterns written and maintained by hand. With a small corpus there is too little signal to tune either.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Output follows a declared schema, so records drawn from many documents share the same fields and can be queried together.
  • Because the ontology names what to capture, the same pipeline can be pointed at a new domain by changing the schema and patterns, although trained components may need retraining.
  • Rule-based patterns and trained models can be combined, so a project with little annotated data can start with patterns over linguistic structure.

Applications

  • Building structured knowledge bases from large document collections.
  • Extracting events and their participants from news or report archives.
  • Capturing relations and attributes from domain text in health, social science, economics, and business settings.
  • Populating databases with facts mined from unstructured documents.

How it works

How it works

1

A domain-specific ontology or schema is defined first. It lists the entity types, relations, events, and attributes the system should look for. Because extraction captures only what the schema describes, this step determines what counts as a fact in the domain.

2

The raw text is cleaned and segmented into sentences and tokens, so that the patterns and models operate on consistent input. Noisy tokens and incorrect sentence boundaries would otherwise cause matches to fail or to attach to the wrong elements.

3

Entities, relations, events, and attributes defined in the ontology are located in the text. This is done with pattern-matching rules over linguistic structure, with trained models, or with a combination of both.

4

The located elements are assembled into records that follow the schema. An event's slots are filled, the participants of a relation are linked, and attributes are attached to their entities. The output is machine-readable structured information derived from the original text.

Common pitfalls

  • Starting extraction before the schema is settled. If entity or relation definitions change midway, earlier records become inconsistent with later ones.
  • Reusing patterns or models built for one domain in another, which degrades extraction accuracy.
  • Skipping preprocessing. Broken sentence boundaries and noisy tokens cause pattern matches to fail or to attach participants to the wrong event.
  • Running on a corpus well below the fifty-document guideline, which gives the patterns or models too few examples to work reliably.
  • Letting errors pass unchecked between stages. A wrong sentence boundary or a gap in the schema carries into the assembled records, so check each stage on a sample before the full run.

Frequently asked questions

How is information extraction different from named-entity recognition?

Named-entity recognition only locates and labels entities such as people, places, and organisations. Information extraction is broader: it also identifies the relations between those entities, the events they participate in, and their attributes, and assembles all of this into structured records that follow a schema.

Why do I need an ontology before running it?

The ontology, or schema, defines exactly what counts as a fact in your domain — which entity types, relations, events, and attributes to look for. Information extraction only captures what the schema describes, so without one the system has no target and produces inconsistent output.

Do I need labelled training data?

It depends on the approach. Pattern- or rule-based extraction operates over linguistic structure and can work without labelled examples, while trained models learn from annotated data. Many systems combine both, so the data you need varies with the method you choose.

How much text do I need?

A rough guideline is about fifty documents, and it is an approximate threshold rather than a firm requirement. The volume you need depends on the schema and the method: with far fewer documents, the patterns or models have too few examples to extract reliably.

Related methods

Sources

  1. Cowie, J. & Lehnert, W. (1996). Information Extraction. Communications of the ACM.

    Open DOI reference
  2. Grishman, R. (2012). Information Extraction. In Handbook of Natural Language Processing.

    ISBN: 9781420085921
  3. Data Mining: Concepts and Techniques, 3rd ed. (Morgan Kaufmann, 2011), p. 430