Skip to main content

Text Analytics and Natural Language Processing (MDA I level)

Hours
15
CFU
3

Syllabus

Course Description
This course provides an introduction to Text Analytics and Natural Language Processing (NLP), exploring fundamental techniques, tools, and applications. Participants will learn how to process, analyze, and extract insights from textual data, utilizing modern libraries and frameworks.

Course Objectives
By the end of the course, participants will:
1. Understand the basic concepts of Text Analytics and NLP.
2. Gain hands-on experience with common NLP tools and frameworks.
3. Learn techniques for text preprocessing, feature extraction, and model building.
4. Explore applications of NLP, such as sentiment analysis, text classification, topic modelling and clustering, text summarization, chatbots and text generation.

Course Outline

Lecture 1 (3 hours): Introduction and Fundamentals
1. **Introduction to Text Analytics and NLP**
– WhaDet is Text Analytics and NLP?
– Real-world applications: chatbots, sentiment analysis, search engines.
2. **Basic Text Processing**
– Tokenization, stemming, lemmatization.
– Stopword removal and text normalization.
3. **Hands-On Session**
– Using Python libraries: NLTK, spaCy.

Lecture 2 (3 hours): Feature Extraction and Text Representation
1. **Text Representation Techniques**
– Bag of Words (BoW).
– Term Frequency-Inverse Document Frequency (TF-IDF).
– Word embeddings: Word2Vec, GloVe.
2. **Hands-On Session**
– Implementing BoW and TF-IDF with Scikit-learn.
– Visualizing word embeddings.

Lecture 3 (3 hours): Sentiment Analysis and Text Classification
1. **Supervised Machine Learning for NLP**
– Text classification overview: Naïve Bayes, Logistic Regression, Support Vector Machines.
– Evaluating models: precision, recall, F1-score.
2. **Hands-On Session**
– Building a sentiment analysis model.
– Implementing classification pipelines using Scikit-learn.

Lecture 4 (3 hours): Advanced NLP with Deep Learning
1. **Neural Networks for NLP**
– Recurrent Neural Networks (RNNs), Long Short-Term Memory (LSTM).
– Introduction to Transformers and BERT.
2. **Hands-On Session**
– Fine-tuning a pre-trained model using Hugging Face Transformers.

Lecture 5 (3 hours): Applications and Future Trends (3 Hours)
1. **Applications of NLP**
– Text summarization.
– Named Entity Recognition (NER).
– Topic modeling with Latent Dirichlet Allocation (LDA).
2. **Ethics and Challenges in NLP**
– Bias in language models.
– Ethical considerations in NLP applications.
3. **Hands-On Session**
– Implementing text summarization and topic modeling.

—

Assessment and Grading
1. **Participation and Engagement** (20%)
2. **Hands-On Assignments** (30%)
3. **Final Project** (50%) : Either a Draft or a End-to-End Application on a crossing topics over the Course Area S1

—

Prerequisites
– Basic programming knowledge in Python.
– Familiarity with basic machine learning concepts.

Required Tools
– Python 3.x, Jupyter Notebook.
– Libraries: NLTK, spaCy, Scikit-learn, Hugging Face Transformers.