From 4b722a1f79d7221cb0330f8906bec8b9f237abb7 Mon Sep 17 00:00:00 2001 From: Andrew Lin Date: Tue, 3 Mar 2015 11:59:46 -0500 Subject: [PATCH] Fix a variable name for clarity. Former-commit-id: 434c603798b159f8d5dde8d3bc8c11a754efdd6c --- wordfreq/build.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wordfreq/build.py b/wordfreq/build.py index 3bf8cc2..1699b5c 100644 --- a/wordfreq/build.py +++ b/wordfreq/build.py @@ -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.")