I have code that allows me to get data from a Twitter Search API. However I am having trouble counting the emoticons. I have a text file, with 126 emoticons, that I have classified against numbers 1-6. These numbers represent emotions. So one column is emoticons and next to it is the corresponding number.
How do I read the text file that has both emoticon and number, and search the API and count the emoticons that it catches.
So for example
etc. That is how the text file is set up.
So every time an emoticon is caught in the search API, I want the count for each number to increase. How do I go about doing that? I have looked all over the web, which is how I noticed this forum.
I have tried that, but I have to input a pattern. And it gives me a count, but not one that is correct, because I checked manually.