Fix a variable name for clarity.

Former-commit-id: 434c603798
This commit is contained in:
Andrew Lin 2015-03-03 11:59:46 -05:00
parent a82dfedeba
commit 4b722a1f79

View File

@ -198,12 +198,12 @@ def load_all_data(source_dir=None, filename=None, do_it_anyway=False):
save_wordlist_to_db(conn, 'twitter-stems', lang, twitter_stems_wordlist[lang])
logger.info("Loading unstemmed Twitter corpus.")
twitter_stems_wordlist = read_multilingual_csv(
twitter_surface_wordlist = read_multilingual_csv(
os.path.join(source_dir, 'luminoso', 'twitter-surfaces-2014.csv')
)
for lang in twitter_stems_wordlist:
for lang in twitter_surface_wordlist:
logger.info("\tLanguage: %s" % lang)
save_wordlist_to_db(conn, 'twitter-surfaces', lang, twitter_stems_wordlist[lang])
save_wordlist_to_db(conn, 'twitter-surfaces', lang, twitter_surface_wordlist[lang])
logger.info("Done loading.")