mlia-examples
mlia-examples copied to clipboard
AttributeError: 'FreqDist' object has no attribute 'inc'
When I run you're program I got this error,
AttributeError: 'FreqDist' object has no attribute 'inc'
that's because latest version of nltk doesn't have inc. Rather I used update on line 348 and 349. like this:
word_freq.update([word])
word_degree.update([word, degree]) # other words