diff --git a/Cloud Natural Language API: Qwik Start b/Cloud Natural Language API: Qwik Start new file mode 100644 index 0000000..759dd7f --- /dev/null +++ b/Cloud Natural Language API: Qwik Start @@ -0,0 +1,10 @@ +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" + +SSH and then run below command + +gcloud ml language analyze-entities --content="Michelangelo Caravaggio, Italian painter, is known for 'The Calling of Saint Matthew'." > result.json