Skip to content

Lessons

Natural Language Processing (NLP): all lessons

From bags of words to embeddings and transformers.

6 modules · 19 lessons · 1 free to read now

About this track: outcomes, tools and price

Module 1Representing Text

3 lessons

From one-hot vectors to word embeddings to contextual embeddings — how machines represent the meaning of words.

  1. Models cannot do arithmetic on words. How we turn words into numbers decides what a model can learn — and what it never can.

    Free · read nowRead the lesson Simulation inside
  2. Tokenisation for NLP

    16 min

    A model never sees words — it sees tokens. How text is cut decides the vocabulary, the sequence length, the API bill, and why Indonesian costs more than English.

    Included with the track Simulation inside
  3. TF-IDF and Classic Text Features

    16 min

    Count the words, weight them by rarity, and you have a text classification baseline that trains in seconds — and is often hard to beat.

    Included with the track Simulation inside

Module 2Text Classification

4 lessons

Sentiment analysis, topic detection and ticket routing — from TF-IDF + logistic regression to fine-tuned transformers.

  1. Text Preprocessing Pipelines

    14 min

    Every preprocessing step destroys information. This lesson is about deciding deliberately what to merge, what to keep, and why the answer differs for TF-IDF and for transformers.

    Included with the track
  2. Classic Text Classifiers

    18 min

    TF-IDF with logistic regression: trains in a second, its weights are readable, and it is often enough. This lesson builds one from 60 reviews all the way to a routing threshold.

    Included with the track Simulation inside
  3. Fine-Tuning Transformers for Classification

    20 min

    Borrow a model that has already read millions of Indonesian sentences, attach a 2,307-parameter classification head, train briefly — then decide honestly whether the result is worth the cost.

    Included with the track Simulation inside
  4. Classification with LLMs

    16 min

    One prompt can classify without a single training label. The question is no longer "can it", but when it is cheaper, when it costs more, and how you know it is right.

    Included with the track Simulation inside

Module 3Information Extraction

3 lessons

Named entity recognition, relation extraction, and turning free documents into structured data.

  1. Named Entity Recognition

    16 min

    Classification gives one label per document. Extraction needs a label per token: who, which organisation, where, when — and the BIO scheme is how you write that down so a machine can learn it.

    Included with the track Simulation inside
  2. Structured Extraction with LLMs

    18 min

    From invoices and contracts to JSON records ready for a database: a schema that guards the types, code that guards the truth, and a loop that decides when a person has to look.

    Included with the track Simulation inside
  3. Evaluating Extraction

    14 min

    "95% accuracy" says nothing about an extraction system. What matters: per entity or per token, per field or averaged, and which mistakes lose money.

    Included with the track Simulation inside

Module 4Transformers for NLP

3 lessons

Encoders, decoders, BERT and GPT — the architecture that changed NLP, and how to use pretrained models.

  1. Encoders and Decoders

    16 min

    BERT understands, GPT generates — and why the difference is in the attention mask.

    Included with the track Simulation inside
  2. Pretrained Language Models

    14 min

    Pretraining, fine-tuning, and choosing a model from thousands available.

    Included with the track
  3. Hugging Face in Practice

    18 min

    Pipelines, tokenizers and the Trainer — from zero to a running model.

    Included with the track Simulation inside

Module 6NLP for Indonesian

3 lessons

Slang, code-mixing, regional languages and resources like IndoNLU — closing with a capstone project.

  1. Challenges of Indonesian Text

    15 min

    Abbreviations, slang, affixes, and mixed Indonesian–English text.

    Included with the track
  2. Indonesian NLP Resources

    13 min

    Datasets, benchmarks and pretrained models for Indonesian.

    Included with the track
  3. Capstone: a Review Analyser

    45 min

    Sentiment and topics from e-commerce reviews, evaluated and ready to use.

    Included with the track Simulation inside