How to Solve NameError: name 'WordNetLemmatizer' is not defined -- nltk

Solution: Import the 'WordNetLemmatizer' module

To Solve the error, add the following line to the top of your code.

from nltk.stem import WordNetLemmatizer

 

For more information:
Python nltk WordNetLemmatizer