I'm relatively new to python and NLTK, but I wrote a program that used FreqDist from NLTK. It's been working as intended for the last week but today it returned: 'FreqDist' object has no attribute 'most_common'
Does anyone have any idea as to why this is? Like I said, everything was working fine prior to this and I didn't make any changes to the code.
edit: Here is the relevant code:
from nltk import FreqDist
fdist1 = FreqDist(input_list)
frequency_output = fdist1.most_common(150)
Not sure what else is necessary - the input list is a list of words. Was working fine last night...
Thank you!