Changed the name of style 19 from plugins to "no commitment"
This commit is contained in:
10
19-no-commitment/plugins-src/frequencies2.py
Normal file
10
19-no-commitment/plugins-src/frequencies2.py
Normal 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)
|
||||
|
||||
Reference in New Issue
Block a user