NLP Starter · free course

Free course · Lesson 1 of 5

What Natural Language Processing Is

In this lesson you will

  • Describe NLP tasks by input and output
  • Name the stages of an NLP pipeline

Natural language processing (NLP) is the part of computing that lets software work with human language. A spam filter reads a message and decides whether it is spam. A search box reads a question and ranks documents. A translation tool turns a sentence in one language into another.

  • Every NLP task has an input and an output: message in, category out; question in, ranked documents out.
  • Most NLP systems are pipelines: collect text, clean it, split it into tokens, turn tokens into numbers, apply a model and evaluate the result.
  • Most problems start with the data: unmasked phone numbers, mixed languages and spelling variation cause more errors than the choice of model.

Practical Skill: Before building anything, write down the input, the output and what a correct result looks like, then collect a few examples that people have labelled by hand.

TemplateAn Enquiry-Routing Pipeline
Worksheet
Task:   route incoming SMS to the right office (fictional college)Input:  "pls when is the last day to pay exam fees"Output: enquiry Pipeline:  1. Collect     SMS export from the college phone (with permission)  2. Clean       lowercase, mask phone numbers, expand "pls" -> "please"  3. Tokenise    please | when | is | the | last | day | to | pay | exam | fees  4. Represent   count how often each vocabulary word appears  5. Model       a classifier trained on 600 labelled messages  6. Evaluate    test on 150 messages the model has never seen A person reads every complaint and every message the model is unsure about.

Practice exercise

Choose three language tools you use and write the input, the output and one realistic mistake for each.

Key takeaways

  • Every NLP task can be described by its input and output
  • Most problems come from data and preprocessing, not the model
In the full program Module 1: Introduction to Natural Language Processing See how this topic is taught in depth, with practical activities and an assessment.

Free self-study lesson — no certificate. For the full instructor-led program, see registration options.