1. Learn
  2. /
  3. Courses
  4. /
  5. Natural Language Processing (NLP) in Python

Connected

Exercise

Lemmatization

While continuing your analysis of user reviews, you noticed that stemming sometimes produces non-standard words like "fli" from "flying", which can reduce interpretability. To address this, you'll now use lemmatization, which returns actual words and helps improve the clarity and accuracy of your analysis.

WordNetLemmatizer has been imported, stop_words has been defined, and the necessary NLTK resources have been downloaded.

Instructions

100 XP
  • Create an instance lemmatizer of the WordNetLemmatizer() class.
  • Use the lemmatizer to lemmatize the lower_tokens.