Lecture 1: Introduction to NLP

What is natural language processing, and how did one simple idea — predicting the next word — take us from hand-built pipelines to large language models and agents? The first lecture also explains how this course works and why the final project is its heart. Watch it in short chapters with English and Chinese subtitles, follow the lecture map below, then try the ideas in Colab.

📅 Sep. 11th, 2026 🎥 chapters · min 🖼 slides 💬 EN + 中文 subtitles 🧭 Lecture map 💻 Colab notebooks ⬇ Slides (PDF)
Transcript follows the video · click a sentence to jump · Shift + ←/→ jumps between slides

1The lecture map

What is NLP — and how did predicting the next word turn into large language models and agents?

Five acts, nine chapters. First who teaches the course and how it runs, then your project, the part that carries most of the grade. Then the content: what NLP is and how it evolved, the one idea behind LLMs, and finally what a university team builds with it and where the research is heading. Click a chapter to watch it.

IWho & how
Meet the team; learn how the course runs and is graded
IIYour project
Plan the assignments and a final project worth 55%
IIIWhat NLP is
The tasks, and how the field got here
IVLLMs
Next-word prediction, scaled up, then put to work as agents
VBuild & next
What a research group builds, and where it is heading
Chapter by chapter what each chapter covers, and the question it leaves for the next
  1. IWho & howMeet the team; learn how the course runs and is graded
  2. 1

    Welcome: Your Instructor and the Research Team

    Benyou Wang's path through linguistics, industry and a PhD in Padua, the group's research on LLM-based agents, and its open-source philosophy: release models, data and code on Hugging Face and GitHub.

    → How is the course itself organized?
  3. 2

    How the Course Works: Logistics, Structure and Grading

    Staff, time and place, the website and WeChat group, the prerequisites of an advanced graduate course, the arc from word vectors to agents, and a grade that is 40% assignments, 55% final project and 5% participation.

    → What exactly will you build?
  4. IIYour projectPlan the assignments and a final project worth 55%
  5. 3

    Three Assignments and the Final Project

    Word vectors, SFT and RLHF, then prompting and agents through APIs. The final project: teams of 1–3, a poster and a paper of at most six pages, released on arXiv, GitHub and Hugging Face, and perhaps submitted to a conference.

    → Where does a good project idea come from?
  6. 4

    Finding Good Ideas and Succeeding in This Course

    Ideas come from the literature and from you: your major, hobbies, data and users, as in the student startups 薯塔AI (FriesAI) and TennSync. Then the course design, what it does and does not cover, and how not to fail.

    → Now the content: what is NLP?
  7. IIIWhat NLP isThe tasks, and how the field got here
  8. 5

    What Is NLP? Understanding, Generation and Core Tasks

    NLP sits between computational linguistics and machine learning; natural language is ambiguous where code is not; NLP = NLU + NLG. The classic tasks, from translation to question answering, show why keyword matching is not enough.

    → How were such systems built, and what replaced them?
  9. 6

    From Pipelines to Transformers: A Brief History of NLP

    Stacks of separate components whose errors add up, then bag-of-words to GPT-4, and rules → statistics → deep learning → Transformers. And how close are today's assistants to Samantha in the film Her?

    → What single idea got us from old NLP to LLMs?
  10. IVLLMsNext-word prediction, scaled up, then put to work as agents
  11. 7

    Language Models, LLMs and the Step to Agents

    A language model scores sequences or predicts the next word; neural networks compute that probability, and scalable architecture, objective and data made it large. LLMs then become agents that act on phones, in games and in robots.

    → What can a university team actually build with this?
  12. VBuild & nextWhat a research group builds, and where it is heading
  13. 8

    Research Showcase: Medical, Multilingual and Math LLMs

    HuatuoGPT and Apollo bring medical LLMs to hospitals and to 50 languages, AceGPT aligns an LLM with Arabic culture, and small models fine-tuned for math compete with GPT-4 on GSM8K. Agents simulate a stock market in TwinMarket.

    → Where is this research heading?
  14. 9

    Recursive Self-Improvement, Oversight and Your Views

    Recursive self-improvement in messy real-world environments, and the challenge it raises: oversight that scales with capability. Four class surveys on AI and jobs, and a summary of the whole lecture.

2Try it in Colab

Three short notebooks turn the lecture into experiments. Click Open in Colab, then Runtime → Run all. Each ends with exercises. All three run on a free CPU runtime; a T4 GPU only makes Notebook 3 faster.

Notebook 1 · Chapters 5–6 · ~2 min

The classic NLP pipeline

  • Watch keyword search match Ginger the dog to a spice
  • Tag, parse and find entities with spaCy
  • Build a rule-based slot filler, and see "there" and typos break it
Open in Colab .ipynb · CPU
Notebook 2 · Chapter 7 · ~3 min

What is a language model?

  • Build a bigram model from counts and see it give zero to a good sentence
  • Score the chimpanzee's typing vs. "ChatGPT is all you need" with GPT-2
  • Multiply out the chain rule, and write the generation loop yourself
Open in Colab .ipynb · CPU
Notebook 3 · Chapters 5 & 7 · ~5–10 min

One model, many tasks

  • Keyword lexicon vs. a 0.5B LLM on sarcasm and negation
  • Translate, classify, answer and extract slots with one prompt each
  • See that every answer is still a next-token distribution
Open in Colab .ipynb · CPU (T4 GPU optional)

3Concept index

Key terms of the lecture. Each link opens the video at the slide where the idea is explained.

5Quotes & reading

"You shall know a word by the company it keeps!"

J. R. Firth, A Synopsis of Linguistic Theory, 1930–1955 (1957)
The distributional hypothesis behind word2vec and GPT (slide 76), and Assignment 1.

"The fundamental problem of communication is that of reproducing at one point either exactly or approximately a message selected at another point."

Claude Shannon, A Mathematical Theory of Communication (1948)
The 1948 paper where n-gram models of English begin, the first entry on the timeline of Chapter 7.

"I propose to consider the question, 'Can machines think?'"

Alan Turing, Computing Machinery and Intelligence, Mind (1950)
Turing's test is a conversation in natural language; the surveys in Chapter 9 ask what machines can do today.

"The biggest lesson that can be read from 70 years of AI research is that general methods that leverage computation are ultimately the most effective, and by a large margin."

Why scalable objectives and compute (Chapter 7) replaced hand-built pipelines (Chapter 6).

Further reading

6About this video

This is an AI-narrated version of the lecture. The slides are the ones used in class. The spoken script was written from the slides with AI assistance and is read in an AI clone of Prof. Benyou Wang's voice (MiniMax speech synthesis); the picture in the corner is a still photo. The red dot points at what is being discussed. When the narration and the slides disagree, trust the slides and the in-class lecture — and please tell us, so we can fix it.
CSC5051/CSC6052/MDS5110 Natural Language Processing · CUHK-Shenzhen · Fall 2026 · Back to the course page