Renumbered styles to flow better

This commit is contained in:
Crista Lopes
2013-11-18 17:15:42 -08:00
parent ad8a6f5791
commit 459f85e4f7
36 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
import operator, collections
def top25(word_list):
"""
Takes a list of words and returns a dictionary associating
words with frequencies of occurrence
"""
counts = collections.Counter(w for w in word_list)
return counts.most_common(25)