30% off every book in our site-wide sale. Shop the sale

What Is the NLP Pipeline? Input Processing Understanding Generation Explained

ch04 header 1

What Is the Input Processing Understanding Generation Pipeline, in Plain Language

TL;DR: The Input, Processing, Understanding, Generation pipeline is the book's map for how raw text becomes useful action. Input is messy language coming in, Processing cleans and splits it, Understanding extracts meaning, and Generation produces language or an action.

The Natural Language Processing pipeline has four phases: Input, which is raw text or speech entering a system; Processing, which is cleaning and tokenising; Understanding, which is extracting intent, entities, and context; and Generation, which is producing a response or an action.

The one sentence version

Natural Language Processing, which is the field that helps machines work with human language, turns messy language into useful action by cleaning it, splitting it, understanding it, and responding.

Think of a kitchen: raw ingredients go in, they are cleaned and measured, they are mixed with purpose, and a finished meal comes out.

The pipeline is a map, not a magic trick, and it helps you ask where a tool succeeds or fails.

fig4-2-four-phase-pipeline.jpg

Input: where language enters

Input can be typed text, speech converted to text, documents, emails, posts, or a whole library.

At this point language is messy, with typos, mixed capitalisation, emojis, slang, extra spaces, and web noise.

Example input from the book: Book a table for two at 7pm tonight at L'Artusi.

Processing: cleaning and splitting

Processing includes normalisation, which is making text consistent, such as lowercasing where it helps and keeping a proper name together.

Tokenisation, which is breaking text into working units, splits the booking example into tokens like book, a, table, for, two, at, 7pm, tonight, and L'Artusi, keeping 7pm as one time token.

Processing may also handle stop words, which are common words like the, a, and and, plus stemming, which is crude reduction by chopping endings, and lemmatisation, which is accurate reduction to a proper base form.

Understanding: meaning, intent, entities, context

Understanding uses embeddings, which are dense number representations that place similar words near each other, so book as a verb can be read as reserve, not as a physical book.

Intent, which is the overall goal behind an utterance, is book_table in the example, and entities, which are specific details needed to act, include party size two, time 7pm, date tonight, and restaurant L'Artusi.

Context tracking, which is maintaining memory across turns, lets a system remember a location or a prior choice, and it helps resolve it, tonight, and corrections like make it 8, not 7.

Generation: language or action

Generation turns a decision into helpful language, such as: Done, table for two at L'Artusi tonight at 7pm.

Some systems generate no language at all, and instead output a label, a chart, or an action like flagging spam or setting an alarm.

Large Language Models, which are large models with billions of parameters, often do understanding and generation inside one large system, and the four phases still give a useful conceptual map.

How the pipeline adapts

Sentiment analysis, which is identifying opinions and emotions in text, emphasises Understanding and may output a dashboard, not text.

Translation emphasises Generation in another language, with attention to meaning, not word for word replacement.

Voice assistants add speech to text before Input and text to speech after Generation, and they must resolve tomorrow to an actual date.

Key Takeaways

The pipeline is Input, Processing, Understanding, Generation.

Each phase builds on the last, so poor tokenisation can break entity recognition.

Use the pipeline to sketch any Natural Language Processing task and to diagnose failures.

See the parent book: What Is Natural Language Processing? A Complete Beginner's Guide to Understanding How Machines Understand Language Without Code or Math

FAQ

Q: Is the pipeline always a straight line? A: No. Modern systems can do several steps inside one large model, and real systems loop back for clarification, but the four phases still describe the work.

Q: What is tokenisation in plain words? A: Tokenisation is breaking text into working units, like slicing a sentence into LEGO bricks, including words, subword pieces, and multiword units such as 7pm or L'Artusi.

Q: Do I need to memorise every term to use the pipeline? A: No. Learn the four phases first, then add terms as you meet them, with the glossary in Appendix A as a refresher.

Q: How do I use the pipeline to judge a vendor tool? A: Ask what the input is, what cleaning is needed, what understanding is extracted, and what action or output is valuable, then ask about limits, bias, and oversight.

What Is Natural Language Processing?

Original price was: £4.99.Current price is: £3.49.

A Complete Beginner’s Guide to Understanding How Machines Understand Language

SKU: P0RKXL10S7A

Get the book

Google Play eBookGoogle Play AudiobookBarnes & Noble

More from What Is Natural Language Processing?