Coursera

Qwick start

Create API key

export GOOGLE_CLOUD_PROJECT=$(gcloud config get-value core/project)
gcloud iam service-accounts create my-natlang-sa \
  --display-name "my natural language service account"
gcloud iam service-accounts keys create ~/key.json \
  --iam-account my-natlang-sa@${GOOGLE_CLOUD_PROJECT}.iam.gserviceaccount.com
export GOOGLE_APPLICATION_CREDENTIALS="/home/USER/key.json"

Analyze a sentence (SSH)

gcloud ml language analyze-entities --content="Michelangelo Caravaggio, Italian painter, is known for 'The Calling of Saint Matthew'." > result.json

Use NLP API from Google Docs

Enable API

Navigation > APIs & Services > Library > Cloud Natural Language API

Create API key

Navigation > APIs & Services > Credentials > Create Credentials > API Key