01Chapter 1: Tokens, types and vocabularyText processing begins by deciding what counts as a unit. In natural language processing (NLP), that unit is often a token. Token counts describe how much text you have, while type counts describe how varied that text is.3 min read
02Chapter 2: Splitting text: whitespace and regular expressionsThis chapter assumes you know basic Python, including strings, lists, and regular expressions. You should also know the basic idea of an NLP task such as search or classification.3 min read
03Chapter 3: Where simple tokenisers breakAssume you know basic Python, regular expressions, and common NLP tasks such as search or classification. This chapter focuses on the cases where a whitespace split or a small regular expression gives the wrong tokens.3 min read
04Chapter 4: Normalising text before and after tokenisingThis chapter assumes you know basic Python, regular expressions, and terms such as noun, verb, plural, and tense. It also assumes you have seen tokenisation, which divides text into smaller units called tokens.3 min read
05Chapter 5: Subword tokenisation: BPE and WordPieceAssume you know basic Python, regular expressions, and the purpose of tokenisation in an NLP task such as search or classification. This chapter focuses on subword tokenisation, which splits words into reusable pieces instead of treating every complete word as an independent token.3 min read
06Chapter 6: Word forms: inflection, derivation, stems and lemmasThis chapter assumes you know basic Python, regular expressions, and grammar terms such as noun, verb, adjective, plural, and tense. It also assumes you have seen an NLP task such as search or text classification.3 min read
07Chapter 7: Stemming by suffix strippingThis chapter assumes basic Python, regular expressions, and familiarity with NLP tasks such as search or text classification. It also assumes that you know basic grammar terms such as noun, verb, plural, and tense.3 min read
08Chapter 8: The Porter and Snowball stemmers in practiceThis chapter assumes you know basic Python, lists, functions, and regular expressions. You should also know that a natural language processing task can include search, classification, or text matching. Basic grammar terms such as noun, verb, plural, and tense are useful.3 min read
09Chapter 9: Overstemming and understemmingAssume you know basic Python, regular expressions, and the difference between nouns, verbs, and adjectives. You should also know that stemming removes word endings by rules, while lemmatisation uses vocabulary and grammar to find a valid base form.3 min read
10Chapter 10: Lemmatisation with a lexiconThis chapter assumes basic Python, regular expressions, and common grammar terms such as noun, verb, adjective, plural, and tense. It also assumes you know that tokenisation turns text into tokens.2 min read
11Chapter 11: Why part of speech matters for lemmasAssume you know basic Python, regular expressions, and common grammar terms such as noun, verb, and adjective. You should also understand that an NLP task may involve search, classification, or text analysis.2 min read
12Chapter 12: Choosing between stemming, lemmatisation and subwordsAssume you know basic Python, regular expressions, search or classification, and grammar terms such as noun, verb, plural, and tense. This chapter gives you a decision process for choosing how to represent words in an NLP system.3 min read