Skip to content

DS 12 · Text Mining and Information Retrieval

XU Exponential University of Applied Sciences 5 ECTS · 56 h contact · 94 h self study Summer semester 2026 Baseer Baheer

Course description

Most of the world's data is unstructured text: web pages, reports, contracts, emails, reviews and chat messages. This course teaches how to find relevant text (Information Retrieval) and how to learn from text (Text Mining). Students build, piece by piece, the components of a real search and text analytics system, preprocessing, indexing, compression, ranking and classification, and learn how these components scale on distributed infrastructure.

flowchart TB
    subgraph OFF["Offline · build once"]
      direction LR
      C["Documents"] --> P["Text processing<br/>U3"] --> I["Indexing<br/>U5"] --> Z["Compression<br/>U6"]
    end
    subgraph ON["Online · every query"]
      direction LR
      Q["Query"] --> QP["Query processing<br/>U3"] --> M["Matching<br/>U4"] --> R["Ranking<br/>U7 · U8"]
    end
    D["Distributed infrastructure · U2"] -.-> OFF
    OFF -->|"the index serves every query"| ON
    ON -.-> CL["Classification and embeddings · U9"]

Course Learning Outcomes (CLOs)

On successful completion of this course, students will be able to:

CLO Outcome Bloom
CLO 1 Explain the Information Retrieval process and distinguish IR, text mining, data mining and database querying. UNDERSTAND
CLO 2 Design and justify a text preprocessing pipeline (tokenisation, normalisation, stemming/lemmatisation, stopwords) for a given language and use case. EVALUATE
CLO 3 Construct inverted, positional and tolerant indexes and process Boolean, phrase and wildcard queries efficiently. APPLY
CLO 4 Analyse the size of an index using Heaps' and Zipf's laws and apply dictionary and postings compression. ANALYSE
CLO 5 Compute and compare ranking scores with TF·IDF / Vector Space Model and BM25. EVALUATE
CLO 6 Build and evaluate text classifiers and embedding based semantic search. APPLY
CLO 7 Architect a scalable text pipeline using distributed tools (HDFS, Spark, Kafka, Cassandra). CREATE
CLO 8 Deliver a team prototype with documentation, version control and correct attribution, and defend it in a presentation. CREATE

CLO → PLO mapping

The programme outcomes below are a generic Data Science profile; replace them with the official PLOs of the host programme.

PLO A Domain knowledge PLO B Technical implementation PLO C Analytical problem solving PLO D Communication & teamwork PLO E Professional & ethical practice
CLO 1 ●●● ●
CLO 2 ●● ●● ●●
CLO 3 ●● ●●● ●●
CLO 4 ●● ● ●●●
CLO 5 ●● ●● ●●●
CLO 6 ●● ●●● ●● ●
CLO 7 ● ●●● ●●
CLO 8 ●● ● ●●● ●●●

●●● strong · ●● moderate · ● supporting

Units at a glance

Unit Title Delivered Key question CLOs
1 Introduction to IR & Text Mining 15 Apr 2026 What problem are we solving, and for whom? 1
2 Distributed Architectures for Text Mining 29 Apr 2026 What if the text is too big or too fast for one machine? 7
3 Text Processing 06 May 2026 How does raw text become index terms? 1, 2
4 Boolean & Tolerant Retrieval 13 May 2026 How do we answer exact queries fast, even with typos? 3
5 Index Construction 27 May 2026 How do we build an index larger than memory? 3, 7
6 Index Compression 27 May 2026 How do we make the index small and fast? 4
7 Vector Space Model 09 Jul 2026 How do we rank instead of filter? 5
8 BM25 & Probabilistic IR 09 Jul 2026 How do we rank well? 5
9 Text Classification & Embeddings 16 Jul 2026 How do we assign labels and search by meaning? 6
P Final Project end of term Can you build it end to end? 1 to 8

Assessment

The module is assessed through a team project (teams of two) consisting of coding, documentation and a 20 minute presentation with live demonstration. Grading is individual.

Component Evidence CLOs assessed
Implementation Git repository, commit history, working prototype 2, 3, 5, 6, 7
Documentation README with architecture, methodology and evaluation 4, 5, 8
Presentation & Q&A 20 min talk and demo; individual questions on theory and code 1 to 8

Details, milestones and the rubric are on the Final Project page.

Prerequisites and environment

Helpful background

Python programming, basic Linux and git, fundamentals of data structures and algorithms. Talk to the lecturer early if any of these are new to you.

# 1. Check for existing keys
ls -al ~/.ssh

# 2. Generate a key (use your university e-mail)
ssh-keygen -t ed25519 -C "your_university_email"

# 3. Copy the public key (macOS; on Linux use: cat ~/.ssh/id_ed25519.pub)
pbcopy < ~/.ssh/id_ed25519.pub

# 4. GitHub → Settings → SSH and GPG keys → New SSH key

Create a private repository under the university organisation and add the lecturer as a collaborator.

python -m venv .venv && source .venv/bin/activate
pip install scikit-learn nltk spacy rank-bm25 pyspark kafka-python

Code of conduct

  • Good professional practice: build on the work of others with proper attribution.
  • Plagiarism: using the work of others (including AI tools and existing GitHub repositories) without attribution.
  • Attendance is closely connected with success in this module; the in class exercises are part of the learning design.