[NLP] NameError in using nltk: name ‘freqdist’ is not defined

The author also began to learn NLP technology in order to do graduation design, and wrote out some problems or experiences I met in daily life. For everyone to study and progress together!

recently encountered this problem “NameError: name ‘FreqDist’ is not defined” while learning python natural language to work with the book. The solution is as follows:

from NLTK import * or from nltk.book import * .

operating results will return to normal:

Read More: