Skip to content

Commit

Permalink
Language region tag update (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
alixhami authored and NimJay committed Nov 10, 2022
1 parent 988233a commit a124a46
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions cloud-language/snippets/analyze.v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
'use strict';

function analyzeSentimentOfText(text) {
// [START language_sentiment_string]
// [START language_sentiment_text]
// Imports the Google Cloud client library
const language = require('@google-cloud/language');

Expand Down Expand Up @@ -53,11 +53,11 @@ function analyzeSentimentOfText(text) {
.catch(err => {
console.error('ERROR:', err);
});
// [END language_sentiment_string]
// [END language_sentiment_text]
}

function analyzeSentimentInFile(bucketName, fileName) {
// [START language_sentiment_file]
// [START language_sentiment_file_gcs]
// Imports the Google Cloud client library
const language = require('@google-cloud/language');

Expand Down Expand Up @@ -95,11 +95,11 @@ function analyzeSentimentInFile(bucketName, fileName) {
.catch(err => {
console.error('ERROR:', err);
});
// [END language_sentiment_file]
// [END language_sentiment_file_gcs]
}

function analyzeEntitiesOfText(text) {
// [START language_entities_string]
// [START language_entities_text]
// Imports the Google Cloud client library
const language = require('@google-cloud/language');

Expand Down Expand Up @@ -135,11 +135,11 @@ function analyzeEntitiesOfText(text) {
.catch(err => {
console.error('ERROR:', err);
});
// [END language_entities_string]
// [END language_entities_text]
}

function analyzeEntitiesInFile(bucketName, fileName) {
// [START language_entities_file]
// [START language_entities_file_gcs]
// Imports the Google Cloud client library
const language = require('@google-cloud/language');

Expand Down Expand Up @@ -176,11 +176,11 @@ function analyzeEntitiesInFile(bucketName, fileName) {
.catch(err => {
console.error('ERROR:', err);
});
// [END language_entities_file]
// [END language_entities_file_gcs]
}

function analyzeSyntaxOfText(text) {
// [START language_syntax_string]
// [START language_syntax_text]
// Imports the Google Cloud client library
const language = require('@google-cloud/language');

Expand Down Expand Up @@ -213,11 +213,11 @@ function analyzeSyntaxOfText(text) {
.catch(err => {
console.error('ERROR:', err);
});
// [END language_syntax_string]
// [END language_syntax_text]
}

function analyzeSyntaxInFile(bucketName, fileName) {
// [START language_syntax_file]
// [START language_syntax_file_gcs]
// Imports the Google Cloud client library
const language = require('@google-cloud/language');

Expand Down Expand Up @@ -251,11 +251,11 @@ function analyzeSyntaxInFile(bucketName, fileName) {
.catch(err => {
console.error('ERROR:', err);
});
// [END language_syntax_file]
// [END language_syntax_file_gcs]
}

function analyzeEntitySentimentOfText(text) {
// [START language_entity_sentiment_string]
// [START language_entity_sentiment_text]
// Imports the Google Cloud client library
const language = require('@google-cloud/language');

Expand Down Expand Up @@ -290,11 +290,11 @@ function analyzeEntitySentimentOfText(text) {
.catch(err => {
console.error('ERROR:', err);
});
// [END language_entity_sentiment_string]
// [END language_entity_sentiment_text]
}

function analyzeEntitySentimentInFile(bucketName, fileName) {
// [START language_entity_sentiment_file]
// [START language_entity_sentiment_file_gcs]
// Imports the Google Cloud client library
const language = require('@google-cloud/language');

Expand Down Expand Up @@ -330,11 +330,11 @@ function analyzeEntitySentimentInFile(bucketName, fileName) {
.catch(err => {
console.error('ERROR:', err);
});
// [END language_entity_sentiment_file]
// [END language_entity_sentiment_file_gcs]
}

function classifyTextOfText(text) {
// [START language_classify_string]
// [START language_classify_text]
// Imports the Google Cloud client library
const language = require('@google-cloud/language');

Expand Down Expand Up @@ -368,11 +368,11 @@ function classifyTextOfText(text) {
.catch(err => {
console.error('ERROR:', err);
});
// [END language_classify_string]
// [END language_classify_text]
}

function classifyTextInFile(bucketName, fileName) {
// [START language_classify_file]
// [START language_classify_file_gcs]
// Imports the Google Cloud client library.
const language = require('@google-cloud/language');

Expand Down Expand Up @@ -407,7 +407,7 @@ function classifyTextInFile(bucketName, fileName) {
.catch(err => {
console.error('ERROR:', err);
});
// [END language_classify_file]
// [END language_classify_file_gcs]
}

require(`yargs`)
Expand Down

0 comments on commit a124a46

Please sign in to comment.