From 1e04d37097e5839f0b24000148ebf5605a8331b0 Mon Sep 17 00:00:00 2001 From: Eric Schmidt Date: Wed, 3 Feb 2021 22:17:10 -0800 Subject: [PATCH] samples: fix region tag (#65) * samples: fix region tag * fix: per reviewer Co-authored-by: Justin Beckwith --- ai-platform/snippets/predict-text-sentiment-analysis.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ai-platform/snippets/predict-text-sentiment-analysis.js b/ai-platform/snippets/predict-text-sentiment-analysis.js index b879df80e1..cadd076be9 100644 --- a/ai-platform/snippets/predict-text-sentiment-analysis.js +++ b/ai-platform/snippets/predict-text-sentiment-analysis.js @@ -17,7 +17,7 @@ 'use strict'; async function main(text, endpointId, project, location = 'us-central1') { - // [START aiplatform_predict_text_entity_extraction] + // [START aiplatform_predict_text_sentiment_analysis] /** * TODO(developer): Uncomment these variables before running the sample.\ * (Not necessary if passing values as arguments) @@ -44,7 +44,7 @@ async function main(text, endpointId, project, location = 'us-central1') { // Instantiates a client const predictionServiceClient = new PredictionServiceClient(clientOptions); - async function predictTextEntityExtraction() { + async function predictTextSentimentAnalysis() { // Configure the endpoint resource const endpoint = `projects/${project}/locations/${location}/endpoints/${endpointId}`; @@ -73,8 +73,8 @@ async function main(text, endpointId, project, location = 'us-central1') { console.log(`\tSentiment measure: ${predictionResult.sentiment}`); } } - predictTextEntityExtraction(); - // [END aiplatform_predict_text_entity_extraction] + predictTextSentimentAnalysis(); + // [END aiplatform_predict_text_sentiment_analysis] } process.on('unhandledRejection', err => {