Deleted unneeded comments and checks

This commit is contained in:
Crista Lopes
2013-12-29 20:59:09 -08:00
parent 00e3b89f89
commit c2196f57da
6 changed files with 7 additions and 46 deletions

View File

@@ -1,13 +1,6 @@
import operator
def top25(word_list):
"""
Takes a list of words and returns a dictionary associating
words with frequencies of occurrence
"""
if type(word_list) is not list or word_list == []:
return {}
word_freqs = {}
for w in word_list:
if w in word_freqs: