Courses/Artificial Intelligence

Natural Language Processing

AI357, IA357 · SVNIT Artificial Intelligence

How computers read and write language, in plain words: regular expressions and automata, tokens and BPE, n-gram models and smoothing, TF-IDF and word vectors, Naive Bayes classification, tagging and parsing, RNNs, attention and transformers.

Read it on Tu ChahiyeFree with your SVNIT college email

What's inside

  • Full course: 13 chapters

The chapters

  1. 00How to use this course0.1 What this subject is about · 0.2 The map of the course · 0.3 Where this material comes from · 0.4 How to read a page · 0.5 The notation used everywhere · 0.6 A plan for the exams
  2. 01What NLP Is and How It Grew1.1 What NLP Is · 1.2 Human Language: Written, Spoken, Fillers and Disfluency · 1.3 Where NLP Came From: Georgetown-IBM, ELIZA and the Turing Test · 1.4 Applications of NLP · 1.5 Challenges in NLP · 1.6 Kinds of NLP Tasks · …
  3. 02Regular Expressions for Text2.1 Why Regular Expressions Matter in NLP · 2.2 Wildcards and Repetition: + * ? {m,n} · 2.3 Character Sets, Ranges and Escapes · 2.4 Anchors and Groups · 2.5 Greedy and Non-Greedy Matching · 2.6 search, match and findall in Python · …
  4. 03Finite-State Automata and Transducers3.1 Finite-State Automata: States, Alphabet, Transitions, Final States · 3.2 Deterministic and Non-Deterministic Automata (the sheep language) · 3.3 The D_RECOGNIZE Algorithm and Its End-of-Input Bug · 3.4 Where FSAs Are Used: Word Lists and Parsing · 3.5 Morphological Analysis and Generation · 3.6 Nouns, Verbs and Hindi Case Endings · …
  5. 04Tokenization, Normalization and Subwords4.1 What Tokenization Is: Units from Characters to Corpora · 4.2 Splitting on Whitespace, Punctuation and Regex · 4.3 Tokenizing Text with No Spaces: Dynamic Programming · 4.4 Normalization: Case and Noisy Text · 4.5 Stop Words and Zipf's Law · 4.6 Stemming and Lemmatization · …
  6. 05N-gram Language Models and Basic Smoothing5.1 What a Language Model Does · 5.2 The Chain Rule and Joint Probability · 5.3 Relative Frequency and N-gram Counts · 5.4 Start and End Markers (BOS, EOS) and Sentence Probability · 5.5 Choosing the Most Likely Next Word · 5.6 Why Zero Counts Break the Model · …
  7. 06Advanced Smoothing and Evaluating Language Models6.1 Zipf's Law and Why Counts Need Smoothing · 6.2 Good-Turing Smoothing: Frequency of Frequency · 6.3 Unseen Mass and the Averaging and Hack Fixes · 6.4 Backoff and Stupid Backoff · 6.5 Katz Backoff and Absolute Discounting · 6.6 Kneser-Ney Smoothing and the Continuation Probability · …
  8. 07From Words to Vectors: Bag of Words, TF-IDF and Embeddings7.1 Why Words Need Numbers · 7.2 One-Hot and Sparse Encodings · 7.3 Bag of Words and Count Vectors · 7.4 Bigram Features and the Size of a Vector · 7.5 Term Frequency: Binary, Raw, Log and Normalised Forms · 7.6 Inverse Document Frequency and the Smoothed Log Formula · …
  9. 08Classifying Sentences8.1 What Text Classification Is (a sentence is a document) · 8.2 Naive Bayes: Bayes Rule and the Naive Assumption · 8.3 Add-K Smoothing for Bigram Features · 8.4 Worked Example: Predicting a Label with Naive Bayes · 8.5 Logistic Regression (MaxEnt) · 8.6 SVM, Decision Trees, Random Forests and the MLP · …
  10. 09Tagging Every Token: POS, Spans and NER9.1 Sequence Labeling: One Label per Token · 9.2 Counting the Possible Tag Sequences · 9.3 Part-of-Speech Tagging and Tagsets · 9.4 Span Labels: BIO Tags for Chunks · 9.5 CoNLL and SSF Annotation Formats · 9.6 Named Entity Recognition · …
  11. 10Parsing, Chunking and Relations10.1 Phrase Structure and Production Rules · 10.2 Constituency Trees from a Grammar · 10.3 Top-Down and Bottom-Up Parsing as Search · 10.4 CKY Parsing for a Grammar in Chomsky Normal Form · 10.5 Chunking and Shallow Parsing · 10.6 Dependency Parsing · …
  12. 11RNNs, Encoder-Decoder and Attention11.1 From Fixed Windows to Sequences · 11.2 Recurrent Neural Networks: State That Carries Over · 11.3 LSTM and GRU: Gates That Keep Memory · 11.4 The Encoder-Decoder Architecture · 11.5 Attention: Choosing Which Inputs to Look At · 11.6 Beam Search: Keeping the k Best Partial Outputs · …
  13. 12Transformers and NLP Applications12.1 Self-Attention and the Transformer Block · 12.2 Encoder-Only Models (BERT-style) · 12.3 Decoder-Only Models (GPT-style) · 12.4 Machine Translation · 12.5 Text Summarization · 12.6 Question Answering · …

Previous year papers

Mid-sem 2025

The original papers, as they were set. All SVNIT previous year papers

Tu Chahiye is a student project, not an official SVNIT service. Course codes and names are used only to say which subject a page is about. All courses · Exam preparation