Final Project: Build a Text Mining / IR System¶
The brief¶
Your turn to be the CityDocs team
Design and implement a Text Mining / Information Retrieval system for a real world problem, applying the full pipeline from data collection to preprocessing, representation, retrieval or analysis, and evaluation. Your system must be a working prototype, not a notebook of disconnected cells.
Your project must make clear:
- a concrete problem or use case (e.g. document search, text classification, a domain search engine);
- why the problem matters in a real world context;
- the models, methods and preprocessing you chose, and why;
- how your system retrieves, processes or understands text.
Core requirements¶
flowchart TB
subgraph R1["Build the data"]
direction LR
A["1 · Collect<br/>≥ 2 sources<br/>web · API · DB · docs · streams"] --> B["2 · Preprocess<br/>tokenise · normalise ·<br/>stopwords · stem/lemmatise"]
end
subgraph R2["Model and retrieve"]
direction LR
C["3 · Represent and analyse<br/>vectors · features · similarity ·<br/>classification · clustering · topics"] --> D["4 · Retrieve / analyse<br/>Boolean <b>or</b> VSM <b>or</b> BM25"]
end
subgraph R3["Evaluate"]
direction LR
E["5 · Evaluate and interpret<br/>Precision/Recall <b>or</b><br/>qualitative analysis"]
end
R1 --> R2 --> R3
| # | Requirement | Related units | CLO |
|---|---|---|---|
| R1 | Collect text data from more than one source | 1, 2 | 1, 7 |
| R2 | Preprocess the text and justify each step | 3 | 2 |
| R3 | Represent and analyse the data using course concepts | 5 to 9 | 3 to 6 |
| R4 | Implement Boolean retrieval, VSM or BM25 | 4, 7, 8 | 3, 5 |
| R5 | Evaluate (Precision/Recall or qualitative) and interpret | 7 to 9 | 5, 6 |
| R6 | Optional: scalable pipeline (Hadoop, Kafka, Spark, Spark NLP) | 2, 5 | 7 |
Deliverables¶
- Source code + dataset in a Git repository (GitHub or Bitbucket), lecturer added as collaborator
- Working prototype: a web app, Python preferred, hosted (e.g. PythonAnywhere)
- Clear architecture: diagram of data → preprocessing → model → output
- Documentation:
README.mdwith problem, data, method, architecture, evaluation, limitations, attribution - Presentation and demonstration: 20 minutes
Suggested milestones¶
| Week | Milestone | Evidence in repo |
|---|---|---|
| after Unit 1 | Team formed, problem statement, data sources identified | README.md § Problem |
| after Unit 3 | Data collected, preprocessing pipeline with examples | src/preprocess.py, sample outputs |
| after Unit 5 | Index or feature matrix built on the full dataset | collection statistics in README |
| after Unit 8 | Retrieval / ranking module working end to end | demo queries with results |
| after Unit 9 | Evaluation completed, prototype deployed | evaluation table, live URL |
| final session | Presentation and Q&A | slides, tagged release |
Assessment rubric¶
Grading is individual: it considers the quality and clarity of each member's contribution (primarily the git commit history), technical input and understanding, and presentation performance including Q&A. Unequal contributions may lead to different grades. The weighting below is indicative.
| Criterion | Weight | Excellent (A) | Satisfactory (C) | Insufficient (F) |
|---|---|---|---|---|
| Problem & data | 10 % | Real, well motivated problem; ≥ 2 heterogeneous sources, documented | Plausible problem; 2 sources, basic description | Toy problem or single source |
| Preprocessing | 15 % | Pipeline justified per step with before/after evidence and trade offs | Standard pipeline, partially justified | Missing or unjustified |
| Retrieval / analysis method | 25 % | Correct own implementation; design choices (e.g. \(k_1\), \(b\), SMART scheme) explained and compared | Working implementation, limited explanation | Incorrect or only a library call without understanding |
| Evaluation | 15 % | Sound methodology (test queries/labels), P/R or F1, error analysis | Some metrics or examples, shallow interpretation | No evaluation |
| Architecture & prototype | 15 % | Clean architecture diagram, deployed, robust demo | Runs locally, diagram present | Does not run |
| Documentation & practice | 10 % | Clear README, meaningful commits, full attribution (incl. AI tools) | Adequate README, uneven commits | Poor documentation or missing attribution |
| Presentation & Q&A | 10 % | Clear story, confident answers on theory and own code | Understandable, some gaps | Cannot explain own work |
Academic integrity
Building on others' work is good practice with attribution. Using others' work (including AI tools such as ChatGPT or Claude and existing GitHub repositories) without attribution is plagiarism. Add an Attribution section to your README listing every external source, library, dataset and AI assistance.
Example project ideas¶
- Berlin regulations search: BM25 over scraped legal texts with a positional index for exact phrases.
- Citizen message router: Kafka ingestion, Spark preprocessing, Naive Bayes vs. Logistic Regression, dashboard.
- Research paper finder: arXiv API + Semantic Scholar, TF·IDF vs. embedding search, P@10 on hand labelled queries.
- Product review miner: reviews from two shops, sentiment classification and topic trends over time.
README template¶
# Project title
## 1. Problem and users
## 2. Data sources (≥ 2) and collection
## 3. Architecture (diagram: data → preprocessing → model → output)
## 4. Preprocessing (each step + justification + example)
## 5. Representation and retrieval/analysis model
## 6. Evaluation (method, metrics, results, error analysis)
## 7. How to run / live demo URL
## 8. Limitations and future work
## 9. Team contributions
## 10. Attribution (datasets, libraries, code, AI tools)