How to Solve NameError: name 'PorterStemmer' is not defined -- nltk
Solution: Import the 'PorterStemmer' module
To Solve the error, add the following line to the top of your code.
from nltk.stem.porter import PorterStemmer
For more information:
Python nltk PorterStemmer