Intermediate · module I8
Natural Language Processing in Practice
By the end: Clean and represent text, build a text classifier and sentiment analyser, and build an intent-based chatbot
- Covers
- Processing text in Python, from tokens to sentiment analysis and chatbots
- Contents
- 3 chapters, 13 topics
- Time
- About 2 hours
- Level
- Intermediate
- Your progress
- 0 / 13
This module builds on Machine Learning Foundations. We suggest looking at it first, but the choice is yours.
Chapter 1 Text Processing
- 1.18 minBeing written
Stages of NLP
Lexical, syntactic, semantic, discourse and pragmatic analysis
Interactive: trace a sentence through the stages
- 1.210 minBeing written
Tokenisation and Text Cleaning
Splitting text, lowercasing, removing punctuation and stopwords
Code: clean product reviews
- 1.38 minBeing written
Stemming and Lemmatisation
Reducing words to their root
Code: compare a stemmer and a lemmatiser
- 1.410 minBeing written
Parts of Speech and Named Entities
Tagging nouns, verbs, people, places and dates
Code: extract entities from news
Chapter 2 Representing Text
- 2.110 minBeing written
Bag of Words
Counting words to turn text into numbers
Code: build a vocabulary
- 2.210 min Read
TF-IDF
Weighting words that are frequent here but rare elsewhere
Code: find the keywords of a document
tf-idf = tf × log(N / df)
- 2.310 minBeing written
Word Embeddings
Words as vectors whose distance reflects meaning
Interactive: explore word neighbours
Chapter 3 NLP Applications
- 3.115 minBeing written
Sentiment Analysis
Classifying text as positive, negative or neutral
Code: a review sentiment analyser
- 3.212 minBeing written
Text Classification
Spam, topic and intent classification
Code: a news topic classifier
- 3.315 minBeing written
Intent-Based Chatbots
Intents, entities and responses
Lab: build a shop assistant chatbot
- 3.410 minBeing written
Speech to Text and Text to Speech
Using speech services from Python
Code: transcribe a voice note
- 3.510 minBeing written
NLP for Indian Languages
Scripts, code-mixing and multilingual models
Code: translate and analyse Hinglish text
- 3.615 minBeing written
Module Review and Assessment
Exercises and a scored quiz
Graded lab