Course

The lecture "Emotion Analysis from Text" by Roman Klinger, with slides, assignments and literature.

The lecture Emotion Analysis from Text is a class I taught at the University of Stuttgart from winter 2020/2021 to 2022/2023. It covers emotion theories from psychology, corpus creation, dictionary-based and machine-learning methods, appraisal-based emotion analysis, role labelling and emotion intensity. I hope the material helps anyone who wants to learn about emotion analysis in text or to design a class on the topic.

I now teach newer versions of the lecture at the University of Bamberg. The material here is still from Stuttgart; I plan to update it with the Bamberg material in winter 2027.

Slides

SessionTopicSlides
1IntroductionPDF
2Emotion theoriesPDF
3CorporaPDF
4DictionariesPDF
5Discussion of assignment 1
6Machine-learning classificationPDF
7Appraisal-based emotion analysis 1PDF
8Appraisal-based emotion analysis 2PDF
9Discussion of assignment 2
10Role labellingPDF
11Discussion of assignment 3
12Intensity, valence and arousalPDF
In-class exercise on best–worst scaling: PDF
13Discussion of assignment 4

If you would like to use the LaTeX sources of the slides for your own lecture, please contact Roman Klinger.

Assignments

The assignment sheets are from the last iteration of the class.

  1. Creating corpora (PDF). Annotation environment: spreadsheet (XLSX), online version.
  2. Training classification models (PDF). Data: unify-emotion-datasets on GitHub; the corpora on this site can be used as well.
  3. Literature review (PDF). Templates for the report and the slides: ZIP (LaTeX).
  4. Role labelling (PDF). Data: extract-emotion-data on GitHub.

Literature

There is no textbook on emotion analysis from text. These books give a good overview, though usually in less detail than the lecture:

The papers behind the corpora and methods discussed in the lecture are cited with each corpus on the Data sets page and under How to cite.