Week 11 • Monday

Block 102: Stemming & Lemmatization

Reduce words to their base forms.

Concepts

Code Examples

See exercise below.

Exercise

Compare stemming vs lemmatization for: running, flies, better, geese, studies. Write a function that lemmatizes a sentence using POS tags.

Homework

Describe a scenario where stemming would produce incorrect results but lemmatization would not. Tuesday