diff --git a/score.py b/score.py new file mode 100644 index 0000000..b95d81d --- /dev/null +++ b/score.py @@ -0,0 +1,18 @@ +import csv + +# Split each tweet into a list of words +def stemmify(tweet_string): + word_list = tweet_string.split() + return word_list + +# Open csv file containing tweets +csvfile = open('clean_data/collection3.csv') +csvreader = csv.DictReader(csvfile) + +# Split each tweet into a list of words and print the list +for tweet in csvreader: + stemmed_words = stemmify(tweet['text']) + print stemmed_words + +# Close the csv file +csvfile.close()