AiTeky Original Interactive Learning & Practice Intermediate
NLP: teaching computers to read
Clean and count text, turn it into numbers with TF-IDF, sort reviews and support tickets, build a search box, then use embeddings and transformers on a free GPU to understand what people mean, not just the words they type.
Spam filters, the search box in a shopping app, the chat assistant on a bank's website and the "positive or negative?" score on a product page all have one thing in common: a computer reading text. That is natural language processing, or NLP.
In this course you will start with plain Python: cleaning text, cutting it into tokens and counting words. Then you will turn text into numbers with bag of words and TF-IDF, train models that sort reviews and route support tickets to the right team, and build a small search engine for help-centre questions. Finally you will meet the ideas behind modern language models: embeddings, which place words with similar meanings close together, and transformers, which read every word in the light of the words around it. You will fine-tune one on a free GPU in Google Colab.
You need Python basics, pandas and the machine learning course before this one; the deep learning course helps for lessons 8 and 9. The first part runs in your browser. Lessons 7 to 10 also have a notebook for Google Colab.
- Learn lessons explain one idea at a time, with small exercises you can try again and again.
- Industry ready lessons give you real business questions, an honest comparison of methods, and the interview questions that go with them.
- βΆ Run code in your browser. Nothing to install
- β Exercises that check themselves
- π Tap a word to see what it means
Locked. Sign up free
Learn
Understand each idea with everyday examples. No coding background needed.
- 01 25 min Free sample π AiTeky Pass Text as data See how a computer holds text, split sentences into tokens, count words with a Counter, and find which words unhappy customers use most, in 3,000 real-looking food delivery reviews.
- 02 30 min π AiTeky Pass Cleaning text Wash raw text before you count it. Use regular expressions to keep only words, turn smileys into words, set stop words aside without losing "not", fix common misspellings, cut word endings, and wrap it all into one cleaning function for 3,000 reviews.
- 03 30 min π AiTeky Pass Bag of words and TF-IDF Turn text into a table of numbers a model can learn from. Build a bag of words by hand and with CountVectorizer, count word pairs so "not tasty" gets its own column, and use TF-IDF so that words found everywhere count for less.
- 04 35 min π AiTeky Pass Sorting reviews into positive and negative Train your first text classifiers. Put a vectorizer and a model into one pipeline, compare naive Bayes and logistic regression, see how word pairs help, read which words the model trusts, and study the reviews it still gets wrong.
- 05 30 min π AiTeky Pass How similar are two texts? A help-centre search Measure how alike two texts are with cosine similarity, build a search box that finds the right help-centre answer with TF-IDF, test it on 411 real-looking customer questions, and see exactly where word matching fails.
- 07 35 min π AiTeky Pass Embeddings: words as points of meaning See why word counts cannot tell that "refund" and "money back" are alike, build word vectors from the company words keep in 3,000 reviews, watch misspellings land next to their correct spelling, then use a pretrained embedding model on a free GPU in Google Colab to compare whole sentences by meaning.
- 08 40 min π AiTeky Pass Attention and transformers See why one vector per word is not enough when words change meaning, work out attention by hand in NumPy, learn how transformers stack it, cut words into subword tokens, then use real pretrained transformers in Google Colab to fill in blanks, judge tricky reviews and read the same word two ways.
- 09 40 min π AiTeky Pass Fine-tuning a transformer Get text ready for a transformer with padding, truncation and attention masks, fine-tune a pretrained DistilBERT on the app's own reviews on a free GPU in Google Colab, and compare it honestly with lesson 4's TF-IDF baseline on accuracy, the tricky reviews, speed and cost.
Industry ready
Real problems from real jobs, and the questions interviewers ask about them.
- 06 40 min π AiTeky Pass On the job: route support tickets to the right team A grocery app's support head wants tickets sent to the right team automatically. Compare keyword rules with a text classifier, find which teams get mixed up and why, let unsure tickets go to a person, and work out the agent time saved, with the interview questions that go with it.
- 10 45 min π AiTeky Pass On the job: a help-centre search that understands customers The help-centre search fails when customers use their own words. Embed every question and help answer on a free GPU, measure embeddings against TF-IDF on 411 real-looking questions, test a mix of both, decide when to answer, when to suggest and when to hand over to a person, and price the result, with the interview questions that go with it.

