mlia-examples icon indicating copy to clipboard operation
mlia-examples copied to clipboard

AttributeError: 'FreqDist' object has no attribute 'inc'

Open emirshekari opened this issue 8 years ago • 0 comments

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

emirshekari avatar Aug 22 '17 20:08 emirshekari