This program reads a given tweets text file and keywords text file and returns the average sentiment value of the tweets by region. Alongside the average sentiment value of the tweets in each region, it also displays how many total tweets there were in each region, as well as how many of the tweets contained the given keywords. If the given files are improperly formatted, or do not exist, the program will simply return an empty list. The program was written in Python.
A tweets.txt file and a keywords.txt file are given for testing purposes.