This is a proof of concept I did to analyze carnival sentiments during the holiday.
If you put your rules, twitter's key and google's auth and api address we will be able to analyze any set of tweets.
- The 'reader' use Twitter Filtered Stream to get a stream of Tweets following the specified rules and publish the tweets on a GCP Pub/Sub.
- The 'analyzer' is connect to this same service as a subscriber and will send the tweets to GCP Natural Language API. The returned analyze is persisted together with the Tweet itself on the GCP Firestone.
x: sentiment type (-1 bad sentiment, 1 good sentiment).
y: sentiment strength.