AIE508 Applied Natural Language Processing

6 ECTS - 3-0 Duration (T+A)- . Semester- 3 National Credit

Information

Unit INSTITUTE OF NATURAL AND APPLIED SCIENCES
ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING (MASTER) (WITH THESIS) (ENGLISH)
Code AIE508
Name Applied Natural Language Processing
Term 2026-2027 Academic Year
Term Fall and Spring
Duration (T+A) 3-0 (T-A) (17 Week)
ECTS 6 ECTS
National Credit 3 National Credit
Teaching Language İngilizce
Level Lisansüstü Dersi
Type Normal
Mode of study Yüz Yüze Öğretim
Catalog Information Coordinator Dr. Öğr. Üyesi EMRE KILINÇ
Course Instructor
The current term course schedule has not been prepared yet.


Course Goal / Objective

The aim of this course is to give students hands-on command of current methods for processing, representing and modelling text data. The course ranges from preprocessing issues specific to morphologically rich languages such as Turkish, through word embeddings and sequence labelling, to fine-tuning Transformer-based models and applications such as machine translation, question answering and text summarisation. Students are expected to be able to solve natural language processing problems with appropriate datasets, models and evaluation metrics.

Course Content

Introduction to natural language processing and linguistic foundations; text preprocessing: normalisation, sentence segmentation, word- and subword-level tokenisation (BPE, WordPiece, SentencePiece); Turkish morphology, morphological analysis and disambiguation; n-gram language models; text classification with bag-of-words and TF-IDF representations; word embeddings (word2vec, GloVe, fastText); neural networks for text classification; sequence labelling: part-of-speech tagging and named entity recognition (HMM, CRF, BiLSTM-CRF); contextual embeddings, Transformer encoders and fine-tuning of BERT-style models; sequence-to-sequence models and neural machine translation; question answering and information extraction; text summarisation and decoding strategies; evaluation metrics (F1, BLEU, chrF, ROUGE, BERTScore) and human evaluation; the Hugging Face ecosystem and Turkish natural language processing resources; term project presentations.

Course Precondition

None. Knowledge of Python programming and of basic machine learning and deep learning is recommended (see AIE505, AIE507).

Resources

The course is delivered through weekly Python practicals and a term project; students solve a natural language processing task end to end, preferably on a Turkish or multilingual dataset, and report their results in the form of a scientific paper and present them. Software used: Python, PyTorch, the Hugging Face Transformers, Datasets, Tokenizers and Evaluate libraries, spaCy, NLTK, Gensim and scikit-learn; for Turkish, Zemberek, Stanza, the Universal Dependencies Turkish treebanks and pre-trained models such as BERTurk. Supplementary materials: the free online draft of the Jurafsky and Martin book, the Stanford CS224n open course and Hugging Face's free online courses; key papers: Mikolov et al. (2013), Pennington et al. (2014), Bojanowski et al. (2017), Vaswani et al. (2017), Devlin et al. (2019), Papineni et al. (2002), Lin (2004). Pre-training of large language models, prompt engineering and retrieval-augmented generation are covered in AIE513, and the fundamentals of the Transformer architecture in AIE505.

Notes

1. Jurafsky, D., Martin, J. H. (2026). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models (3rd ed., online draft, release of 6 January 2026). 2. Eisenstein, J. (2019). Introduction to Natural Language Processing. MIT Press. 3. Tunstall, L., von Werra, L., Wolf, T. (2022). Natural Language Processing with Transformers: Building Language Applications with Hugging Face (Rev. ed.). O'Reilly Media. 4. Goldberg, Y. (2017). Neural Network Methods for Natural Language Processing. Morgan & Claypool. 5. Oflazer, K., Saraçlar, M. (Eds.). (2018). Turkish Natural Language Processing. Springer.


Course Learning Outcomes

Order Course Learning Outcomes
LO01 Explain the core tasks and linguistic levels of natural language processing, together with the challenges posed by agglutinative languages such as Turkish.
LO02 Design and implement preprocessing pipelines for Turkish and English texts, including normalisation, subword tokenisation and morphological analysis.
LO03 Compare sparse and dense text representations (TF-IDF, static and contextual embeddings) and select a representation appropriate to a given task.
LO04 Develop and train models for text classification and sequence labelling (part-of-speech tagging, named entity recognition).
LO05 Fine-tune BERT-style and sequence-to-sequence Transformer models for classification, question answering, translation and summarisation tasks using the Hugging Face ecosystem.
LO06 Evaluate natural language processing systems with appropriate metrics (F1, BLEU, chrF, ROUGE, BERTScore) and human evaluation, and critically interpret the limitations of these metrics.
LO07 Adapt Turkish natural language processing resources (corpora, treebanks, pre-trained models) to a research problem and detect social biases in the models.


Relation with Program Learning Outcome

Order Type Program Learning Outcomes Level
PLO01 Bilgi - Kuramsal, Olgusal Building on undergraduate-level qualifications, has advanced theoretical knowledge of linear algebra, multivariable calculus, probability, statistics, optimisation and information theory required for original work in artificial intelligence and machine learning. 2
PLO02 Bilgi - Kuramsal, Olgusal Has an in-depth understanding of current methods in the main sub-fields of artificial intelligence, notably machine learning, deep learning, reinforcement learning, computer vision, natural language processing and generative models, together with their assumptions and limitations. 5
PLO03 Beceriler - Bilişsel, Uygulamalı Formulates real-world problems as appropriate artificial intelligence/machine learning problems, and designs and implements solutions covering data preparation, model selection, training and evaluation. 4
PLO04 Beceriler - Bilişsel, Uygulamalı Develops efficient, scalable and reproducible software and models using Python and current libraries and frameworks, and makes effective use of big data and high-performance computing resources. 4
PLO05 Beceriler - Bilişsel, Uygulamalı Evaluates methods with appropriate performance metrics, statistical tests and comparative experiments, interprets results critically and designs reproducible experimental protocols. 5
PLO06 Yetkinlikler - Öğrenme Yetkinliği Reviews the national and international literature of the field systematically and critically, independently learns new and emerging methods, and adapts them to their own research problem. 3
PLO07 Yetkinlikler - Bağımsız Çalışabilme ve Sorumluluk Alabilme Yetkinliği Defines a research problem in the field, solves it independently by developing an original method or model, and conducts a thesis study that contributes to scientific knowledge.
PLO08 Yetkinlikler - Bağımsız Çalışabilme ve Sorumluluk Alabilme Yetkinliği Takes responsibility and leadership in interdisciplinary teams working on complex problems in application domains such as health, energy, agriculture, industry, finance and logistics, and develops solutions together with domain experts.
PLO09 Yetkinlikler - İletişim ve Sosyal Yetkinlik Communicates the processes and results of their work clearly and systematically in English, in written (paper, thesis, report) and oral form, in national and international settings. 3
PLO10 Yetkinlikler - Alana Özgü Yetkinlik Observes scientific and professional ethics, data privacy, fairness, transparency and safety principles and the relevant legal regulations in developing and using AI systems, and assesses their societal impact 2
PLO11 Yetkinlikler - Alana Özgü Yetkinlik Deploys trustworthy, explainable and sustainable AI solutions to real environments such as the cloud, edge devices and industrial systems, taking into account resource constraints such as energy, memory and latency. 2


Week Plan

Week Topic Preparation Methods
1 Introduction to natural language processing: tasks and application areas, linguistic levels (morphology, syntax, semantics, pragmatics), regular expressions and text corpora Read Eisenstein (2019), Chapter 1 and the introductory chapter of Jurafsky and Martin (2026) Öğretim Yöntemleri:
Anlatım, Gösteri, Soru-Cevap
2 Text preprocessing and tokenisation: normalisation, sentence segmentation, stemming and lemmatisation, subword methods (BPE, WordPiece, Unigram/SentencePiece) Read the 'Words and Tokens' chapter of Jurafsky and Martin (2026) and Sennrich et al. (2016) on BPE Öğretim Yöntemleri:
Anlatım, Gösteri, Alıştırma ve Uygulama
3 Turkish morphology and preprocessing: agglutinative structure, morphological analysis and disambiguation, Turkish-specific character and spelling normalisation, Zemberek and similar tools Read Oflazer and Saraçlar (2018), Chapters 1–3 Öğretim Yöntemleri:
Anlatım, Gösteri, Alıştırma ve Uygulama
4 Turkish morphology and preprocessing: agglutinative structure, morphological analysis and disambiguation, Turkish-specific character and spelling normalisation, Zemberek and similar tools Read Oflazer and Saraçlar (2018), Chapters 1–3 Öğretim Yöntemleri:
Anlatım, Gösteri, Alıştırma ve Uygulama
5 Word embeddings: distributional semantics, word2vec (CBOW, skip-gram), GloVe, fastText and subword information; evaluating embeddings and social bias in embeddings Read Eisenstein (2019), Chapter 14, the 'Embeddings' chapter of Jurafsky and Martin (2026), and Mikolov et al. (2013) and Bojanowski et al. (2017) Öğretim Yöntemleri:
Anlatım, Gösteri, Alıştırma ve Uygulama, Tartışma
6 Neural networks for text classification: embedding layers, convolutional and recurrent text classifiers, imbalanced classes, multi-label classification; a Turkish sentiment and topic classification exercise Read Eisenstein (2019), Chapter 3 and the relevant chapters of Goldberg (2017) Öğretim Yöntemleri:
Anlatım, Problem Çözme, Alıştırma ve Uygulama
7 Sequence labelling: part-of-speech tagging and named entity recognition, the BIO scheme, hidden Markov models and conditional random fields (CRF), BiLSTM-CRF; review before the mid-term exam Read Eisenstein (2019), Chapters 7–8 and Lample et al. (2016); revise the topics of Weeks 1–6 Öğretim Yöntemleri:
Anlatım, Alıştırma ve Uygulama, Soru-Cevap
8 Mid-Term Exam exam preparation Ölçme Yöntemleri:
Yazılı Sınav
9 Contextual representations and Transformer encoders: self-attention, masked language modelling, BERT and its variants (RoBERTa, DistilBERT, XLM-R), Turkish BERT models Read the 'Masked Language Models' chapter of Jurafsky and Martin (2026) and Devlin et al. (2019) on BERT Öğretim Yöntemleri:
Anlatım, Gösteri, Tartışma
10 Fine-tuning with the Hugging Face ecosystem: the Transformers, Datasets, Tokenizers and Evaluate libraries, the Trainer API, fine-tuning for text classification and named entity recognition, hyperparameter selection Read Tunstall et al. (2022), Chapters 2 and 4; prepare the term project proposal Öğretim Yöntemleri:
Gösteri, Proje Temelli Öğrenme , Alıştırma ve Uygulama
11 Sequence-to-sequence models and machine translation: the encoder-decoder architecture, attention, beam search, Transformer-based neural machine translation, multilingual models (mBART, mT5, NLLB), Turkish-English translation Read Eisenstein (2019), Chapter 18 and Bahdanau et al. (2015) Öğretim Yöntemleri:
Anlatım, Gösteri, Alıştırma ve Uygulama
12 Question answering and information extraction: extractive and generative question answering, SQuAD-style datasets, relation extraction, introduction to dense passage retrieval Read Tunstall et al. (2022), Chapter 7 and Eisenstein (2019), Chapter 17 Öğretim Yöntemleri:
Anlatım, Problem Çözme, Alıştırma ve Uygulama
13 Text summarisation and text generation: extractive and abstractive summarisation, decoding strategies (greedy search, beam search, sampling), fine-tuning T5- and BART-based summarisers Read Tunstall et al. (2022), Chapters 5–6 and Eisenstein (2019), Chapter 19 Öğretim Yöntemleri:
Anlatım, Gösteri, Alıştırma ve Uygulama
14 Evaluation and Turkish resources: precision, recall, F1, BLEU, chrF, ROUGE, BERTScore, human evaluation and statistical significance testing; Turkish corpora, treebanks and benchmark datasets; efficient models through distillation Read Papineni et al. (2002), Lin (2004), Zhang et al. (2020) on BERTScore, and Tunstall et al. (2022), Chapter 8 Öğretim Yöntemleri:
Anlatım, Tartışma, Alıştırma ve Uygulama
15 Term project presentations and course review: discussion of project results, current trends in natural language processing Prepare the project report and presentation Öğretim Yöntemleri:
Proje Temelli Öğrenme , Tartışma
16 Term Exams exam preparation Ölçme Yöntemleri:
Proje / Tasarım
17 Term Exams exam preparation Ölçme Yöntemleri:
Proje / Tasarım


Student Workload - ECTS

Works Number Time (Hour) Workload (Hour)
Course Related Works
Class Time (Exam weeks are excluded) 14 3 42
Out of Class Study (Preliminary Work, Practice) 14 4 56
Assesment Related Works
Homeworks, Projects, Others 0 0 0
Mid-term Exams (Written, Oral, etc.) 1 18 18
Final Exam 1 24 24
Total Workload (Hour) 140
Total Workload / 25 (h) 5,60
ECTS 6 ECTS

Update Time: 25.11.2026 06:42