This simple project uses Google BigQuery & Google Cloud Natural Language API to analyse Stack Overflow comment sentiment. Developed using Python 2.7.x (but should work with Python 3.x though too). The queries and datasets used are all public. You can find the links below.
There are some Python modules needed. Simply run this.
pip install -r requirements.txt
python sentiment/stackoverflow_sentiment.py <path_to_service_account_json_file> <dataset>
https://cloud.google.com/natural-language/ https://cloud.google.com/bigquery/
https://github.com/GoogleCloudPlatform/google-cloud-python/tree/master/bigquery https://github.com/GoogleCloudPlatform/google-cloud-python/tree/master/language
Here's the public dataset in BigQuery for Stackoverflow https://bigquery.cloud.google.com/dataset/bigquery-public-data:stackoverflow
Here you can find the tables that I created with my queries and the results of the NL-API https://bigquery.cloud.google.com/dataset/stackoverflow-sentiment:sentiment
https://bigquery.cloud.google.com:443/savedquery/1056242102418:63c31fe61a7c4d53ae3ef22f30203881
https://bigquery.cloud.google.com:443/savedquery/1056242102418:b4117babd35c41e78aa0ab8c69f42257
https://bigquery.cloud.google.com:443/savedquery/1056242102418:864b7503d0d3407bb97b08350fbdc311
https://bigquery.cloud.google.com:443/savedquery/1056242102418:9a7847826552407aa690db60a1276feb
https://bigquery.cloud.google.com:443/savedquery/1056242102418:7b4dccb9c54b45ed86c4876df5e4794a
https://bigquery.cloud.google.com:443/savedquery/1056242102418:1c6c51620ee24e878cb361e0e236426b
https://bigquery.cloud.google.com:443/savedquery/1056242102418:57b1910592874c3fa4db79a103797cd9