def main(): 
    
    data.city_corpus_dict()
    #seeds words table with city, word, prob(w/city)
    data.seed_words_table()
    data.city_tweet_corpus_dict()
    for city in cities:
	data.create_region_tweet_count(city)
	feature_selection.populate_db_with_features(city)
    data.create_tweet_total_count()
def main():

    data.city_corpus_dict()
    #seeds words table with city, word, prob(w/city)
    data.seed_words_table()
    data.city_tweet_corpus_dict()
    for city in cities:
        data.create_region_tweet_count(city)
        feature_selection.populate_db_with_features(city)
    data.create_tweet_total_count()
コード例 #3
0
def update_features_in_db(cities):
    for city in cities:
        feature_selection.populate_db_with_features(city)
        print "Finished a city!"
コード例 #4
0
def update_features_in_db(cities):
    for city in cities:
	feature_selection.populate_db_with_features(city)
	print "Finished a city!"