Skip to content

Commit 4d446d5

Browse files
samples: fix region tag (#65)
* samples: fix region tag * fix: per reviewer Co-authored-by: Justin Beckwith <[email protected]>
1 parent a26c64d commit 4d446d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ai-platform/snippets/predict-text-sentiment-analysis.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'use strict';
1818

1919
async function main(text, endpointId, project, location = 'us-central1') {
20-
// [START aiplatform_predict_text_entity_extraction]
20+
// [START aiplatform_predict_text_sentiment_analysis]
2121
/**
2222
* TODO(developer): Uncomment these variables before running the sample.\
2323
* (Not necessary if passing values as arguments)
@@ -44,7 +44,7 @@ async function main(text, endpointId, project, location = 'us-central1') {
4444
// Instantiates a client
4545
const predictionServiceClient = new PredictionServiceClient(clientOptions);
4646

47-
async function predictTextEntityExtraction() {
47+
async function predictTextSentimentAnalysis() {
4848
// Configure the endpoint resource
4949
const endpoint = `projects/${project}/locations/${location}/endpoints/${endpointId}`;
5050

@@ -73,8 +73,8 @@ async function main(text, endpointId, project, location = 'us-central1') {
7373
console.log(`\tSentiment measure: ${predictionResult.sentiment}`);
7474
}
7575
}
76-
predictTextEntityExtraction();
77-
// [END aiplatform_predict_text_entity_extraction]
76+
predictTextSentimentAnalysis();
77+
// [END aiplatform_predict_text_sentiment_analysis]
7878
}
7979

8080
process.on('unhandledRejection', err => {

0 commit comments

Comments
 (0)