Changed the name of style 19 from plugins to "no commitment"

This commit is contained in:
Crista Lopes
2013-10-18 17:18:42 -07:00
parent 752bb35c02
commit 2edb91012a
11 changed files with 0 additions and 0 deletions

View File

@@ -1,23 +0,0 @@
#!/usr/bin/env python
import sys, ConfigParser, imp
def load_plugins():
config = ConfigParser.ConfigParser()
config.read("config.ini")
words_plugin = config.get("Plugins", "words")
frequencies_plugin = config.get("Plugins", "frequencies")
global tfwords, tffreqs
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]