I am following instructions for a class homework assignment and I am supposed to look up the top 200 most frequently used words in a text file.
Here\'s the last par
fdist1 = FreqDist(NSmyText)
vocab=fdist1.keys()
This code is using in Python2.7. So you should do some change. dic.keys() returns an iteratable. So using:
list(fdist1.keys())