google-cloud-automl

Google NLP AutoML Java client The provided location ID is not valid

独自空忆成欢 提交于 2019-12-11 08:04:06
问题 I checked out from GitHub Java samples for GoogleCloudPlatform. I am trying to run this example for AutoML NLP prediction after I successfully trained my language model. I am able to perform prediction in the Google Cloud Console. Now I am trying to perform prediction from Java client with this example https://github.com/GoogleCloudPlatform/java-docs-samples/blob/master/language/automl/src/main/java/com/google/cloud/language/samples/PredictionApi.java I created service account for my project,

Java Google AutoML NLP client waiting forever for response (no exception thrown)

风流意气都作罢 提交于 2019-12-11 06:05:20
问题 I trained succesfully my own NLP AutoML model yesterday. I am able to do quite accurate predictions in GCP console. Everything ran smoothly. Today I have been trying to do prediction from Java client based on this example https://github.com/GoogleCloudPlatform/java-docs-samples/blob/master/language/automl/src/main/java/com/google/cloud/language/samples/PredictionApi.java I use correct projectId and modelId that I copied from GCP console but I am waiting for result forever. Even after couple

How do I call a REST Google Cloud API from AppMaker?

回眸只為那壹抹淺笑 提交于 2019-12-11 05:42:56
问题 I want to call the Google Cloud AutoML API from AppMaker, but it's hard to figure out how to do that. How do I make a REST call to Google Cloud from AppMaker? 回答1: First, follow the instructions here to generate a service account and download the private key. (I'm also assuming you already enabled the APIs for your project.) Then, follow the instructions under the section "Addendum: Service account authorization without OAuth", but you will need to implement your own JWT encoding algorithm as