
How the course is structured, how the offline labs and their exit codes work, why the corpus is synthetic and seeded, and why several methods are going to lose.
The honest scope: what the ten sections cover, who will get value, who should not buy this course, and an environment check to run before section two.
Text is not numbers. Every technique in this course is a different answer to that, from characters up to contextual vectors - and each rung encodes something the one below cannot.
The stack this course uses and why each piece is on the list, how to install it into an isolated environment, and the check that proves your machine can reproduce the course's figures.
Everything the course ships: twelve thousand tickets, a dirty raw variant, forty documents in two PDF forms, an offline site and a speech clip - and why all of it is synthetic and seeded.
The purchase objection answered from mechanism rather than from numbers: where a hosted language model is the right default, where a classical pipeline still is, and why the two coexist.
Cleaning as a measurable job rather than a ritual: what tickets_raw.csv actually carries, and why a correct dedupe removes 398 rows and not 412.
Build a counted, idempotent cleaning pipeline over tickets_raw.csv that asserts the published removal counts: 398 rows dropped by dedupe and 38 empty bodies.
Three different trade-offs, not three steps. Tokenisation decides your vocabulary, min_df pruning removes 31 per cent of it, and stemming buys speed with meaning.
Stopword removal helps topic models and destroys negation. 950 of this corpus's 5,491 negative tickets - 17.3 per cent - are negated positives, and 'not' is on every list.
Scraping a bundled offline snapshot: real HTTP, real HTML, real selectors. The body sits in three containers, so one selector gets exactly 50 per cent of the archive.
Crawl the bundled snapshot: honour robots.txt, survive the 9 dead links, extract from all three body containers, strip boilerplate and score against answers.csv.
How text becomes a fixed-width numeric matrix, the exact idf formula scikit-learn uses, and why a third of this vocabulary is noise that idf rewards hardest.
Build TF-IDF by hand on the ticket corpus, check it against scikit-learn to tolerance, then reproduce the published vocabulary sizes at min_df=1 and min_df=2.
Skip-gram and CBOW as prediction tasks whose by-product is the vectors, negative sampling, GloVe as matrix factorisation - and the three limits dense word vectors cannot escape.
Train a seeded embedding on the ticket corpus, project it to two dimensions, and keep clear about what the picture can and cannot be used to claim.
One vector per word type became one vector per token in context. What self-attention computes, why subwords end the out-of-vocabulary problem, and what the change costs.
The four moves of a text classifier - vectorise, split, fit, score - and the habit that makes the score readable: never a number without a baseline and a stated split.
Build the TF-IDF and logistic-regression pipeline, assert it reproduces 69.83 per cent and macro F1 0.6762 to tolerance, and print the 25.60 per cent floor on the same line.
Why accuracy flatters a multi-class text classifier, where the imbalance is actually visible, and what class weighting does and does not fix. Every figure is from the shipped corpus.
Run the same pipeline with and without class_weight='balanced' and print both per-class tables side by side, so the trade - recall up, precision down, accuracy down - is measured rather than asserted.
Lexicon scoring first, then learned models, and then the failure both share: 950 of this corpus's 5,491 negative tickets are negated positives, and bag-of-words cannot see the negation.
Pre-train then fine-tune, as a mechanism: what the encoder brings, what the head learns, what freezing trades, and the classical 69.83 per cent your own number has to be put beside.
Why a coefficient over TF-IDF is directly readable, what permutation importance, LIME and SHAP each actually compute, and why attention weights are not causal attributions.
What a topic model actually returns, why its output is a lens rather than a measurement, and the one case where it can be scored - this corpus, where the topics were planted.
LDA as a generative story: documents as mixtures over topics, topics as distributions over words, and what the two Dirichlet priors actually control. Mechanism only - the numbers are in the lab.
Fit a topic model on the 12,000-ticket corpus and score it against topics_truth.csv, reproducing the published 55.94 per cent recovery exactly rather than admiring word lists.
Factorising a TF-IDF matrix into non-negative parts, why that constraint makes topics readable where SVD does not, and the full derivation of this corpus's 55.94 per cent recovery.
Run NMF and LDA on the same 12,000 tickets and score both against the same planted truth. The NMF figure is asserted at 55.94 per cent; the LDA figure is printed, because none is published.
Coherence, perplexity and the elbow as ways to choose k - and the measured case on this corpus where the data holds ten topics but a model can only distinguish nine.
NER as sequence labelling, the BIO scheme, and the evaluation rule that decides everything: an entity counts only if both boundaries and the type are right.
Train a custom NER over the ticket corpus and score it strictly against entities_truth.csv - precision, recall and F1 per entity type, with span and type both required.
Extractive QA is a model predicting a start index and an end index over a passage. That framing explains the context limit, the sliding window and the null answer.
Extract text from the forty text-layer PDFs, run extractive QA, and score each predicted span against the known answer in docs.csv. The scanned variants are section 7's problem.
Argued from mechanism, not benchmarks: an extractive answer cannot say what the source does not, a generative answer can - and that is the whole decision.
Try the text layer first. Most business PDFs already hold their characters, and OCR on those pages is slower, dearer and worse. What OCR does, and when it is the only way in.
Build the probe-then-fall-back pipeline: detect a usable text layer, read it directly, OCR only when it is missing, extract the answer span and score against docs.csv.
Most of the word error rate on a correct transcript is surface form, not recognition error. What ASR does, what WER counts, and what a fair comparison requires.
Transcribe both audio variants, compute raw word error rate, then normalise both sides and compute it again. Four numbers, printed side by side. The gap is the finding.
Line quality was the premise and it was measured false. What breaks is proper nouns and domain vocabulary - so the effort belongs in biasing lists and post-correction.
Recommending items by their own text: cosine over TF-IDF, why length normalisation makes cosine the right metric, and the limits - no meaning beyond the vocabulary, and a filter bubble.
Build the recommender over the 120 shipped articles and score it against the known categories, with the chance floor on the same line, so the output can be judged rather than admired.
Scoring every item on every request is linear in the catalogue, and catalogues only grow. The progression out: precompute, invert, reduce, approximate - and what each one costs.
The strongest version of 'just use an LLM', stated fairly and then answered - from mechanism and economics rather than accuracy, with the published classical baselines as the only figures.
Run a general model and the TF-IDF classifier over the same held-out tickets on the same stated split, printing both beside the 25.60 per cent floor. Exits 2 if no model is available.
Ten thousand tickets to classify tonight. Build the cost and latency models as formulae, substitute today's numbers yourself, and understand why no price appears anywhere in this course.
Eight dimensions, two of them vetoes, and a recommendation per combination. The conclusion the course has earned: a classical model doing the bulk, a general model taking the tail.
This course contains the use of artificial intelligence.
Most NLP courses show you a method, print a number, and move on. You are never told what that number would have been if the model had learned nothing at all.
This course publishes that floor next to every result, and the data is synthetic and seeded so you can reproduce each figure on your own machine to the digit.
Here is what that buys. A classifier on this corpus scores 69.83 per cent accuracy across seven categories. On its own that sounds respectable. The majority-class floor is 25.60 per cent, so the model earned about forty-four points, not sixty-nine. Break it out per class and precision holds steady while recall collapses from 0.7474 to 0.5368 - the model is not confused about rare categories, it is reluctant to commit to them. None of that is visible in the headline, and the headline is what most courses report.
Text preparation as a measurable job. The shipped corpus arrives dirty: HTML, doubled encoding, signature blocks, quoted replies, duplicate clusters and empty bodies. A correct deduplication removes 398 rows, not 412, because the first of each cluster is a real ticket - and getting that off by the cluster count is the commonest error in a cleaning pipeline.
Representation, derived rather than imported. Bag of words and TF-IDF including the exact formula scikit-learn uses, and why a third of this vocabulary is noise that inverse document frequency rewards hardest. Word embeddings as the by-product of a prediction task. Contextual embeddings and the single change that matters - one vector per occurrence rather than one per word type.
Then the methods, each scored. Classification with imbalance taken apart rather than mentioned. Topic modelling measured against known truth, where two planted topics share eighteen of their twenty-two words and no algorithm, seed or component count will separate them. Named entity recognition evaluated strictly, where a span is wrong unless both boundaries and the type are right. Extractive question answering over real PDFs.
Two of this course's own premises died under measurement. Running OCR on a PDF that already has a text layer is slower, dearer and worse - so the pipeline probes first and falls back second. And on speech: most of the word error rate on a correct transcript is not recognition error at all, it is surface form, because the engine wrote the digits the reference spelled out. What actually breaks is proper nouns and domain vocabulary.
Classical NLP in the era of general models - the question this course has to answer. Argued from mechanism and economics rather than from accuracy claims, ending in a decision table you could defend to a sceptical colleague.
Nineteen hands-on labs. Each runs top to bottom with no edits and no network, exits 0 when every assertion passed, 1 on a failure and 2 when a dependency is missing - and asserts against the same published figures the lectures quote, so the lab and the lecture cannot drift apart.
What this course will not do. It will not quote a transformer or language-model accuracy figure, because those depend on weights that move and a number that drifts is worse than no number. It will not quote a token price, because any price written down here would be wrong within a year while the formula stays correct. And it will not report a score without the baseline beside it.