Deleted unneeded comments and checks
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user