Added plugins style

This commit is contained in:
Crista Lopes
2013-10-18 16:59:09 -07:00
parent d01a224ae9
commit 752bb35c02
11 changed files with 101 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)