Large language models made natural language processing famous, but many everyday text tasks such as tagging support tickets, spotting names and amounts, or measuring sentiment are still done better, faster and cheaper with smaller, focused models. This course covers the foundations of NLP and the modern toolkit together, so you understand how text becomes numbers, which approach fits which problem, and when calling a large model is overkill.
What you'll learn
- How text is cleaned, split and tokenised, including subword tokenisers used by modern models
- Classic representations: bag of words, n-grams and TF-IDF
- Text classification with scikit-learn as a fast, strong baseline
- Linguistic processing with spaCy: parts of speech, dependencies and named entities
- Word and sentence embeddings, and measuring text similarity
- How transformers work at a conceptual level: attention, encoders and decoders
- Fine-tuning small transformer models with Hugging Face for classification and entity extraction
- Using LLMs for zero-shot labelling, then training a cheaper model on those labels
- Multilingual and code-mixed text, including Hindi and Hinglish
- Evaluating NLP models with precision, recall, F1 and careful error analysis
Who it's for
- Python developers and data analysts working with text data
- ML practitioners who know tabular data and want to move into language
- AI developers who use LLM APIs and want to understand the field underneath
Prerequisites
- Comfortable with Python and pandas (see Data Analysis with Python and pandas)
- Basic machine learning concepts (see Machine Learning Fundamentals)
- A free cloud notebook with a GPU for the transformer modules
Outcomes
By the end of this course you will be able to:
- Build and evaluate text classifiers from simple baselines to fine-tuned transformers.
- Extract entities and structured information from unstructured text.
- Use embeddings for similarity, clustering and search.
- Decide between a small model, a fine-tuned transformer and an LLM for a given task.
Course outline
| Module | Topic |
|---|---|
| 1 | What NLP is and where it is used |
| 2 | Text cleaning and tokenisation |
| 3 | Bag of words and TF-IDF |
| 4 | Classification baselines with scikit-learn |
| 5 | spaCy and named entity recognition |
| 6 | Embeddings and similarity |
| 7 | Transformers explained |
| 8 | Fine-tuning with Hugging Face |
| 9 | LLMs for labelling and distillation |
| 10 | Multilingual and code-mixed text |
| 11 | Evaluation and error analysis |
| 12 | Project: a ticket or review classifier for a real dataset |
FAQ
Is NLP still worth learning now that LLMs exist?
Yes. The fundamentals help you use LLMs well, and small models remain the better choice for many high-volume, low-latency or privacy-sensitive tasks.
How is this different from the LLM courses?
Building AI Apps with LLM APIs focuses on building products with hosted models. This course covers the wider field and teaches you to train your own text models.
Do you cover Indian languages?
Yes, one module covers multilingual and code-mixed text with examples in Hindi and Hinglish, along with the models and datasets available for them.
How do I join?
Get in touch and we'll share the current format, schedule and enrolment details.