Wednesday, November 01, 2017

Google Cloud - Natural Language API


Apart from the Quickstart here:
https://cloud.google.com/natural-language/docs/

I used this code:
https://raw.githubusercontent.com/GoogleCloudPlatform/python-docs-samples/master/language/cloud-client/v1/quickstart.py

I had to do a few additional steps including:

Setting up Google Application Default Credentials - including setting the environment variable GOOGLE_APPLICATION_CREDENTIALS

Well described here:
https://developers.google.com/identity/protocols/application-default-credentials

Then I had to disable unwanted warnings based on the details here:
https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings


No comments:

Post a Comment