Skip to content

Commit

Permalink
Create Cloud Natural Language API: Qwik Start
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayush7-BIT authored Mar 9, 2024
1 parent f22df63 commit fd2fb16
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Cloud Natural Language API: Qwik Start
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit fd2fb16

Please sign in to comment.