Skip to content

Repository files navigation

ML4NLP1-2026-Tutorial-Notebooks

Practical Tutorials for the Machine Learning for Natural Language Processing 1 Lecture at the University of Zurich for the Fall Semester 2026.

Note: The materials in this repository are being updated for the Fall Semester 2026 progressively, week by week. Until a tutorial or exercise has been updated, the version you see is the one from 2025. Materials from previous years are kept in their respective folders for reference.

Overview

In this repository, you will find the notebooks for the tutorials and exercises for the course. The tutorials are designed to help you understand and put into practice the theoretical concepts discussed in the lecture. Tutorials are designed to be interactive, and you are encouraged to experiment with the code and try different variations to understand the concepts better.

Tutorials (will be updated as the course progresses)

Files with 2025 in their name are still the versions from last year and will be replaced with the 2026 versions as the semester progresses.

Exercises (will be updated as the course progresses)

Exercise 01:

From linear to deep learning models for text classification. In this exercise, you will implement a simple linear model for text classification using the sklearn library. You will then extend the model to a deep learning model using the skorch library.

See the exercise sheet for more details: Exercise 01

Exercise 02:

Building word embeddings with PyTorch. In this exercise, you will implement a Continuous Bag of Words Model using the torch library. See the exercise sheet for more details: Exercise 02

Exercise 03:

Also known as Exercise AB. Handled through Simon Clematide. Please see OLAT Course for details.

Exercise 04:

Named Entity Recognition using Transformer Encoders. In this exercise, you will fine-tune a BERT model using the HuggingFace library. Additionally, you will experiment with GliNER to perform anonymization of texts. See the exercise sheet for more details: Exercise 04

Exercise 05:

LLM Prompting, Prompt Engineering and small LLM fine-tuning using Unsloth AI. See the exercise sheet for more details: Exercise 05

Exercise 06:

Topic Modeling using LDA and CTM. See the exercise sheet for more details: Exercise 06

About

Practical Tutorials for the Machine Learning for Natural Language Processing 1 Class in the University of Zurich for the Fall Semester of 2026

Resources

Stars

26 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages