Strumenti Utente

Strumenti Sito


Questa è una vecchia versione del documento!

Text Analytics (635AA) A.Y. 2021/22


Andrea Esuli (

Office hours: by appointment, send email.


Day Hour Room
Monday 9-11 Fib C - Teams
Friday 11-13 Fib M1 - Teams


The course targets text analytics systems and applications to respond to business problems by discovering and presenting knowledge that is otherwise locked in textual form. The objective is to learn to recognize situations in which text analytics techniques can solve information processing needs, to identify the analytic task/process that best models the business problem, to select the most appropriate resources methods and tools, to collect text data and apply such methods to them. Several applications context will be presented: information extraction, sentiment analysis (what is the nature of commentary on an issue), spam and fake posts detection, quantification problems, summarization, etc.

  1. Disciplinary background: Natural Language Processing, Information Retrieval and Machine Learning
  2. Mathematical background: Probability, Statistics and Algebra
  3. Linguistic essentials: words, lemmas, morphology, PoS, syntax
  4. Basic text processing: regular expression, tokenisation
  5. Data collection: twitter API, scraping
  6. Basic modelling: collocations, language models
  7. Introduction to Machine Learning: theory and practical tips
  8. Libraries and tools: NLTK, Spacy, Keras, pytorch
  9. Classification/Clustering
  10. Sentiment Analysis/Opinion Mining
  11. Information Extraction/Relation Extraction/Entity Linking
  12. Transfer learning
  13. Quantification


Students MUST contact the teacher at least one month before the date set for the exam session, so as to agree on the contents of the project and get a go ahead.

The date set for the exam session (Check here) is the deadline for submitting the completed project (report and code).

Exam will consist in a project to be agreed with the teacher and an oral exam. The outcome of the project will be some code and a report of the activity (4-10 pages is the typical length range). Oral exam will consist in the presentation and discussion of the project.

The purpose of the project is to let you have some hands on experience on applying the concepts and methods seen during the course to practical text analytics problems.

Projects may be based on challenges proposed in either research forums (Semeval, Evalita) or other platforms (Kaggle). Students are also invited to propose a project on problem based on other sources (e.g., recent papers on ArXiv CL or AI), or their own interests.

Students may work solo or in groups up to three persons.

Lecture Notes

Date Lecture Notes
2021/09/13 Introduction to the course, NLP & Text Analytics 00_-_introduction_to_the_text_analytics_course.pdf, 01_-_natural_language_and_text_analytics.pdf
2021/09/17 Introduction to probability 02_-_introduction_to_probability.pdf
2021/09/20 canceled
2021/09/24 Introduction to python 1/2 03_-_introduction_to_python.pdf
2021/09/27 Introduction to python 2/2
2021/10/01 Probabilistic Language Models 04_-_probabilistic_language_models.pdf


  1. D. Jurafsky, J.H. Martin, Speech and Language Processing. 3nd edition, Prentice-Hall, 2018.
  2. B. Liu, Sentiment Analysis and Opinion Mining. Morgan & Claypool Publishers, 2012.
  3. S. Bird, E. Klein, E. Loper. Natural Language Processing with Python.

Previous editions

mds/txa/start.1633011304.txt.gz · Ultima modifica: 30/09/2021 alle 14:15 (20 mesi fa) da Andrea Esuli