We are doing a project on twitter sentiment analyser in python. In order to increase the efficiency of the system ,during training we wish to store the occurrence of particular words in positive,negative and neutral tweets. Finally we will take the sentiment of the word as the one with maximum occurrence. Which data structure is suitable for storing words and their sentiments(positive,negative and neutral) dynamically? example:
positive negative neutral
market 45 12 2
quite 35 67 5
good 98 2 7
we require to add words to the structure dynamically.