Below are the libraries i have used and the reasons for the same.
1. Collections(Counter): For each tweet, we split the words based on space and then list to dict object.
2. Pandas(Series) : I have used the series to maintain the cuont of all the words, here index is the words and the values are their occorences.
3. OS, SYS : To access the file path.
4. heapq : used the heaps for min heap and max heap processing.
Method to run the program. 1. Please verify the run.sh permission and then run this shell script.