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,5 +1,4 @@
#!/usr/bin/env python
import sys, ConfigParser, imp
def load_plugins():
@@ -11,13 +10,9 @@ def load_plugins():
tfwords = imp.load_compiled('tfwords', words_plugin)
tffreqs = imp.load_compiled('tffreqs', frequencies_plugin)
#
# The main function
#
load_plugins()
word_freqs = tffreqs.top25(tfwords.extract_words(sys.argv[1]))
for tf in word_freqs:
print tf[0], ' - ', tf[1]
for (w, c) in word_freqs:
print w, ' - ', c