Université Côte d'azur

UE Neural Language Processing

Code de l'ECUE : SMUFN133

Ce cours donne droit à 3.0 ECTS.
EUR DS4H
Informatique
Campus SophiaTech Les Lucioles
Master 1
Semestre impair
Anglais

PRESENTATION

This course provides an introduction to Natural Language Processing (NLP), covering the main computational approaches for representing, analysing, classifying, and generating natural language. Students will progress from text preprocessing and classical machine-learning methods to word embeddings, neural networks, Transformers, and generative large language models (LLMs).

Through lectures and practical sessions using Python and Jupyter notebooks, students will learn how to design complete NLP pipelines, select appropriate models and evaluation metrics, analyse results, and critically assess the limitations of modern NLP systems.

Responsable(s) du cours

Anais Ollagnier

Présentiel

  • 12h de cours magistral
  • 12h de travaux dirigés

PREREQUIS

Avant le début du cours, je dois ...
  • Familiarity with machine learning concepts (e.g., supervised learning, classification, regression). Beginners may consult Hal Daumé’s A Course in Machine Learning (Chapters 1–5 recommended), The EFELIA Côte d'azur Handbook on AI.
  • Prior knowledge of basic Python programming
  • The main scientific libraries : NumPy, Pandas, and Matplotlib
  • An introductory understanding of probability, statistics, and linear algebra is helpful but not mandatory.

OBJECTIFS

A la fin de ce cours, je devrais être capable de...
  • Train, evaluate, and compare classical classifiers, CNNs, bidirectional LSTMs, and Transformer-based models.
  • Build clear and reproducible text-preprocessing pipelines.
  • Address both single-label and multi-label text-classification tasks.
  • Build and interpret word representations using co-occurrence matrices, SVD, and Word2Vec.
  • Use pretrained and locally hosted language models effectively and responsibly.
  • Explain attention, self-supervised pretraining, transfer learning, autoregressive generation, and instruction tuning.
  • Critically assess limitations related to bias, hallucinations, data quality, computational cost, and reproducibility.
  • Formulate an NLP task as a supervised or unsupervised learning problem.
  • Design an appropriate evaluation protocol and select relevant metrics.

CONTENU

  • This session reviews the foundations needed for neural language processing, including learning paradigms, evaluation, optimisation, generalisation and neural-network training. It also introduces the essential stages of data preparation: exploratory data analysis, missing values, outliers, feature scaling, class imbalance and information leakage. Students will learn how to build reliable, reproducible pipelines that connect raw data to trainable neural models.

  • This practical session introduces exploratory data analysis and preprocessing for machine-learning workflows. You will inspect data structure and distributions, identify missing values and outliers, examine class imbalance, and apply appropriate cleaning and scaling strategies. The exercises illustrate how data quality and preprocessing choices affect model training, evaluation, and generalisation.

  • In this practical session, you will explore the main techniques used to preprocess textual data for NLP. Through hands-on exercises on English movie synopses, you will compare different tokenisation, stemming, lemmatisation, and stop-word removal approaches and analyse how they transform raw text before modelling.

  • This course explores how textual data can be converted into numerical representations for neural language processing. It covers sparse document representations such as bag-of-words, n-grams, and TF–IDF, as well as distributional approaches based on co-occurrence matrices, SVD, and Word2Vec. The course concludes with trainable embeddings, contextual representations, and pretraining, highlighting the strengths and limitations of each approach.

  • In this practical session, you will explore different approaches to representing text numerically for NLP. Starting from a complete preprocessing pipeline, you will experiment with binary, count, and TF–IDF representations, measure document similarity, apply SVD for dimensionality reduction, and train Word2Vec embeddings to investigate how words and documents can be represented in vector spaces.

  • This lecture introduces recurrent neural architectures for modelling sequential data and language. We will examine how RNNs process sequences, why they struggle with long-term dependencies, and how LSTMs and GRUs use gating mechanisms to improve memory. The lecture also covers bidirectional and stacked architectures, sequence preparation, encoder–decoder models, and the transition from recurrence to attention and Transformers.

  • In this practical session, you will explore recurrent neural networks for text classification using the 20 Newsgroups dataset. You will first establish a TF–IDF baseline, then implement and compare SimpleRNN, bidirectional LSTM, and GRU architectures. Finally, you will evaluate their performance and analyse the strengths and limitations of each recurrent approach.

  • In this two-hour practical session, students will use the Hugging Face ecosystem to apply and fine-tune Transformer models for sentiment classification. The activities cover pipelines, tokenization, direct model inference, IMDb dataset preparation, fine-tuning with the Trainer API, evaluation and error analysis. Students will progressively complete code exercises and examine the strengths and limitations of their model.

  • In this two-hour lab, students will use Hugging Face Transformers to classify French news articles. They will explore tokenization and attention masks, compare frozen Transformer embeddings with LoRA fine-tuning, and evaluate the models using accuracy, macro-F1, a confusion matrix, and error analysis.

  • Aucune description
  • Aucune description
  • This session is dedicated to the development of your individual NLP project. You will work independently on your implementation, experiments, and evaluation, with opportunities to ask questions and receive guidance. The project will form part of the final course assessment.

  • Aucune description
Accéder au Syllabus complet (Authentification requise)
Important
Ce syllabus n’a aucune valeur contractuelle. Son contenu est susceptible d’évoluer en cours d’année : soyez attentifs aux dernières modifications.