Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
fix: correct AutoML Natural Language region tags to match with all ot…
Browse files Browse the repository at this point in the history
…her languages
  • Loading branch information
martinvarelaj authored and bcoe committed Dec 5, 2019
1 parent 927b5ee commit bab8fcb
Show file tree
Hide file tree
Showing 36 changed files with 72 additions and 72 deletions.
4 changes: 2 additions & 2 deletions samples/language/entity-extraction/create-dataset.v1beta1.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function main(
computeRegion = 'YOUR_REGION_NAME',
datasetName = 'YOUR_DATASET_NAME'
) {
// [START automl_natural_language_entity_create_dataset]
// [START automl_language_entity_create_dataset]
const automl = require('@google-cloud/automl');
const util = require('util');
const client = new automl.v1beta1.AutoMlClient();
Expand Down Expand Up @@ -62,6 +62,6 @@ async function main(
.catch(err => {
console.error(err);
});
// [END automl_natural_language_entity_create_dataset]
// [END automl_language_entity_create_dataset]
}
main(...process.argv.slice(2)).catch(console.error());
4 changes: 2 additions & 2 deletions samples/language/entity-extraction/create-model.v1beta1.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function main(
datasetId = 'YOUR_DATASET_NAME',
modelName = 'YOUR_MODEL_NAME'
) {
// [START automl_natural_language_entity_create_model]
// [START automl_language_entity_create_model]
const automl = require('@google-cloud/automl');
const client = new automl.v1beta1.AutoMlClient();

Expand Down Expand Up @@ -53,6 +53,6 @@ async function main(
.catch(err => {
console.error(err);
});
// [END automl_natural_language_entity_create_model]
// [END automl_language_entity_create_model]
}
main(...process.argv.slice(2)).catch(console.error);
4 changes: 2 additions & 2 deletions samples/language/entity-extraction/delete-dataset.v1beta1.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function main(
computeRegion = 'YOUR_REGION_NAME',
datasetId = 'YOUR_DATASET_ID'
) {
// [START automl_natural_language_entity_delete_dataset]
// [START automl_language_entity_delete_dataset]
const automl = require('@google-cloud/automl');
const client = new automl.v1beta1.AutoMlClient();

Expand Down Expand Up @@ -53,6 +53,6 @@ async function main(
.catch(err => {
console.error(err);
});
// [END automl_natural_language_entity_delete_dataset]
// [END automl_language_entity_delete_dataset]
}
main(...process.argv.slice(2)).catch(console.error());
4 changes: 2 additions & 2 deletions samples/language/entity-extraction/delete-model.v1beta1.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function main(
computeRegion = 'YOUR_REGION_NAME',
modelId = 'YOUR_MODEL_ID'
) {
// [START automl_natural_language_entity_delete_model]
// [START automl_language_entity_delete_model]
const automl = require('@google-cloud/automl');
const client = new automl.v1beta1.AutoMlClient();

Expand Down Expand Up @@ -54,6 +54,6 @@ async function main(
.catch(err => {
console.error(err);
});
// [END automl_natural_language_entity_delete_model]
// [END automl_language_entity_delete_model]
}
main(...process.argv.slice(2)).catch(console.error());
4 changes: 2 additions & 2 deletions samples/language/entity-extraction/deploy-model.v1beta1.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function main(
computeRegion = 'YOUR_REGION_NAME',
modelId = 'YOUR_MODEL_ID'
) {
// [START automl_natural_language_entity_deploy_model]
// [START automl_language_entity_deploy_model]
const automl = require('@google-cloud/automl');
const client = new automl.v1beta1.AutoMlClient();

Expand Down Expand Up @@ -47,6 +47,6 @@ async function main(
.catch(err => {
console.error(err);
});
// [END automl_natural_language_entity_deploy_model]
// [END automl_language_entity_deploy_model]
}
main(...process.argv.slice(2)).catch(console.error());
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async function main(
modelId = 'YOUR_MODEL_ID',
filter = 'YOUR_FILTER_EXPRESSION'
) {
// [START automl_natural_language_entity_display_evaluation]
// [START automl_language_entity_display_evaluation]
const automl = require('@google-cloud/automl');
const math = require('mathjs');
const client = new automl.v1beta1.AutoMlClient();
Expand Down Expand Up @@ -107,6 +107,6 @@ async function main(
.catch(err => {
console.error(err);
});
// [END automl_natural_language_entity_display_evaluation]
// [END automl_language_entity_display_evaluation]
}
main(...process.argv.slice(2)).catch(console.error());
4 changes: 2 additions & 2 deletions samples/language/entity-extraction/export-data.v1beta1.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function main(
datasetId = 'YOUR_DATASET_ID',
gcsOutputUri = 'GCS_OUTPUT_URI'
) {
// [START automl_natural_language_entity_export_data]
// [START automl_language_entity_export_data]
const automl = require('@google-cloud/automl');
const client = new automl.v1beta1.AutoMlClient();

Expand Down Expand Up @@ -66,6 +66,6 @@ async function main(
.catch(err => {
console.error(err);
});
// [END automl_natural_language_entity_export_data]
// [END automl_language_entity_export_data]
}
main(...process.argv.slice(2)).catch(console.error());
4 changes: 2 additions & 2 deletions samples/language/entity-extraction/get-dataset.v1beta1.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function main(
computeRegion = 'YOUR_REGION_NAME',
datasetId = 'YOUR_DATASET_ID'
) {
// [START automl_natural_language_entity_get_dataset]
// [START automl_language_entity_get_dataset]
const automl = require('@google-cloud/automl');
const util = require('util');
const client = new automl.v1beta1.AutoMlClient();
Expand Down Expand Up @@ -57,6 +57,6 @@ async function main(
.catch(err => {
console.error(err);
});
// [END automl_natural_language_entity_get_dataset]
// [END automl_language_entity_get_dataset]
}
main(...process.argv.slice(2)).catch(console.error());
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function main(
modelId = 'YOUR_MODEL_ID',
modelEvaluationId = 'YOUR_MODEL_EVALUATION_ID'
) {
// [START automl_natural_language_entity_get_model_evaluation]
// [START automl_language_entity_get_model_evaluation]
const automl = require('@google-cloud/automl');
const math = require('mathjs');
const client = new automl.v1beta1.AutoMlClient();
Expand Down Expand Up @@ -100,6 +100,6 @@ async function main(
.catch(err => {
console.error(err);
});
// [END automl_natural_language_entity_get_model_evaluation]
// [END automl_language_entity_get_model_evaluation]
}
main(...process.argv.slice(2)).catch(console.error());
4 changes: 2 additions & 2 deletions samples/language/entity-extraction/get-model.v1beta1.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function main(
computeRegion = 'YOUR_REGION_NAME',
modelId = 'YOUR_MODEL_ID'
) {
// [START automl_natural_language_entity_get_model]
// [START automl_language_entity_get_model]
const automl = require('@google-cloud/automl');
const util = require('util');
const client = new automl.v1beta1.AutoMlClient();
Expand Down Expand Up @@ -61,6 +61,6 @@ async function main(
.catch(err => {
console.error(err);
});
// [END automl_natural_language_entity_get_model]
// [END automl_language_entity_get_model]
}
main(...process.argv.slice(2)).catch(console.error());
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

'use strict';
async function main(operationFullId = 'OPERATION_FULL_ID') {
// [START automl_natural_language_entity_get_operation_status]
// [START automl_language_entity_get_operation_status]
const automl = require('@google-cloud/automl');
const client = new automl.v1beta1.AutoMlClient();

Expand Down Expand Up @@ -51,6 +51,6 @@ async function main(operationFullId = 'OPERATION_FULL_ID') {
.catch(err => {
console.error(err);
});
// [END automl_natural_language_entity_get_operation_status]
// [END automl_language_entity_get_operation_status]
}
main(...process.argv.slice(2)).catch(console.error());
4 changes: 2 additions & 2 deletions samples/language/entity-extraction/import-data.v1beta1.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function main(
datasetId = 'YOUR_DATASET_ID',
gcsPath = 'GCS_PATH'
) {
// [START automl_natural_language_entity_import_data]
// [START automl_language_entity_import_data]
const automl = require('@google-cloud/automl');
const client = new automl.v1beta1.AutoMlClient();

Expand Down Expand Up @@ -65,6 +65,6 @@ async function main(
.catch(err => {
console.error(err);
});
// [END automl_natural_language_entity_import_data]
// [END automl_language_entity_import_data]
}
main(...process.argv.slice(2)).catch(console.error());
4 changes: 2 additions & 2 deletions samples/language/entity-extraction/list-datasets.v1beta1.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function main(
computeRegion = 'YOUR_REGION_NAME',
filter = 'YOUR_FILTER_EXPRESSION'
) {
// [START automl_natural_language_entity_list_datasets]
// [START automl_language_entity_list_datasets]
const automl = require('@google-cloud/automl');
const util = require('util');
const client = new automl.v1beta1.AutoMlClient();
Expand Down Expand Up @@ -60,6 +60,6 @@ async function main(
.catch(err => {
console.error(err);
});
// [END automl_natural_language_entity_list_datasets]
// [END automl_language_entity_list_datasets]
}
main(...process.argv.slice(2)).catch(console.error());
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function main(
modelId = 'YOUR_MODEL_ID',
filter = 'YOUR_FILTER_EXPRESSION'
) {
// [START automl_natural_language_entity_list_model_evaluations]
// [START automl_language_entity_list_model_evaluations]
const automl = require('@google-cloud/automl');
const math = require('mathjs');
const client = new automl.v1beta1.AutoMlClient();
Expand Down Expand Up @@ -98,6 +98,6 @@ async function main(
.catch(err => {
console.error(err);
});
// [END automl_natural_language_entity_list_model_evaluations]
// [END automl_language_entity_list_model_evaluations]
}
main(...process.argv.slice(2)).catch(console.error());
4 changes: 2 additions & 2 deletions samples/language/entity-extraction/list-models.v1beta1.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function main(
computeRegion = 'YOUR_REGION_NAME',
filter = 'YOUR_FILTER_EXPRESSION'
) {
// [START automl_natural_language_entity_list_models]
// [START automl_language_entity_list_models]
const automl = require('@google-cloud/automl');
const util = require('util');
const client = new automl.v1beta1.AutoMlClient();
Expand Down Expand Up @@ -64,6 +64,6 @@ async function main(
.catch(err => {
console.error(err);
});
// [END automl_natural_language_entity_list_models]
// [END automl_language_entity_list_models]
}
main(...process.argv.slice(2)).catch(console.error());
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function main(
computeRegion = 'YOUR_REGION_NAME',
filter = 'YOUR_FILTER_EXPRESSION'
) {
// [START automl_natural_language_entity_list_operations_status]
// [START automl_language_entity_list_operations_status]
const automl = require('@google-cloud/automl');
const client = new automl.v1beta1.AutoMlClient();

Expand Down Expand Up @@ -63,6 +63,6 @@ async function main(
.catch(err => {
console.error(err);
});
// [END automl_natural_language_entity_list_operations_status]
// [END automl_language_entity_list_operations_status]
}
main(...process.argv.slice(2)).catch(console.error());
4 changes: 2 additions & 2 deletions samples/language/entity-extraction/predict.v1beta1.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function main(
modelId = 'YOUR_MODEL_ID',
filePath = 'YOUR_LOCAL_FILE_PATH'
) {
// [START automl_natural_language_entity_predict]
// [START automl_language_entity_predict]
const automl = require('@google-cloud/automl');
const fs = require('fs');

Expand Down Expand Up @@ -77,6 +77,6 @@ async function main(
.catch(err => {
console.error(err);
});
// [END automl_natural_language_entity_predict]
// [END automl_language_entity_predict]
}
main(...process.argv.slice(2)).catch(console.error());
4 changes: 2 additions & 2 deletions samples/language/entity-extraction/undeploy-model.v1beta1.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function main(
computeRegion = 'YOUR_REGION_NAME',
modelId = 'YOUR_MODEL_ID'
) {
// [START automl_natural_language_entity_undeploy_model]
// [START automl_language_entity_undeploy_model]
const automl = require('@google-cloud/automl');
const client = new automl.v1beta1.AutoMlClient();

Expand Down Expand Up @@ -47,6 +47,6 @@ async function main(
.catch(err => {
console.error(err);
});
// [END automl_natural_language_enitity_undeploy_model]
// [END automl_language_enitity_undeploy_model]
}
main(...process.argv.slice(2)).catch(console.error());
4 changes: 2 additions & 2 deletions samples/language/sentiment-analysis/create-dataset.v1beta1.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function main(
datasetName = 'YOUR_DATASET_NAME',
sentimentMax = ''
) {
// [START automl_natural_language_sentiment_create_dataset]
// [START automl_language_sentiment_create_dataset]
const automl = require('@google-cloud/automl');
const util = require('util');
const client = new automl.v1beta1.AutoMlClient();
Expand Down Expand Up @@ -62,6 +62,6 @@ async function main(
.catch(err => {
console.error(err);
});
// [END automl_natural_language_sentiment_create_dataset]
// [END automl_language_sentiment_create_dataset]
}
main(...process.argv.slice(2)).catch(console.error());
4 changes: 2 additions & 2 deletions samples/language/sentiment-analysis/create-model.v1beta1.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function main(
datasetId = 'YOUR_DATASET_ID',
modelName = 'YOUR_MODEL_NAME'
) {
// [START automl_natural_language_sentiment_create_model]
// [START automl_language_sentiment_create_model]
const automl = require('@google-cloud/automl');
const client = new automl.v1beta1.AutoMlClient();

Expand Down Expand Up @@ -53,6 +53,6 @@ async function main(
.catch(err => {
console.error(err);
});
// [END automl_natural_language_sentiment_create_model]
// [END automl_language_sentiment_create_model]
}
main(...process.argv.slice(2)).catch(console.error());
4 changes: 2 additions & 2 deletions samples/language/sentiment-analysis/delete-dataset.v1beta1.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function main(
computeRegion = 'YOUR_REGION_NAME',
datasetId = 'YOUR_DATASET_ID'
) {
// [START automl_natural_language_sentiment_delete_dataset]
// [START automl_language_sentiment_delete_dataset]
const automl = require('@google-cloud/automl');
const client = new automl.v1beta1.AutoMlClient();

Expand Down Expand Up @@ -53,6 +53,6 @@ async function main(
.catch(err => {
console.error(err);
});
// [END automl_natural_language_sentiment_delete_dataset]
// [END automl_language_sentiment_delete_dataset]
}
main(...process.argv.slice(2)).catch(console.error());
4 changes: 2 additions & 2 deletions samples/language/sentiment-analysis/delete-model.v1beta1.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function main(
computeRegion = 'YOUR_REGION_NAME',
modelId = 'YOUR_MODEL_ID'
) {
// [START automl_natural_language_sentiment_delete_model]
// [START automl_language_sentiment_delete_model]
const automl = require('@google-cloud/automl');
const client = new automl.v1beta1.AutoMlClient();

Expand Down Expand Up @@ -53,6 +53,6 @@ async function main(
.catch(err => {
console.error(err);
});
// [END automl_natural_language_sentiment_delete_model]
// [END automl_language_sentiment_delete_model]
}
main(...process.argv.slice(2)).catch(console.error());
4 changes: 2 additions & 2 deletions samples/language/sentiment-analysis/deploy-model.v1beta1.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function main(
computeRegion = 'YOUR_REGION_NAME',
modelId = 'MODEL_ID'
) {
// [START automl_natural_language_sentiment_deploy_model]
// [START automl_language_sentiment_deploy_model]
const automl = require('@google-cloud/automl');
const client = new automl.v1beta1.AutoMlClient();

Expand Down Expand Up @@ -47,6 +47,6 @@ async function main(
.catch(err => {
console.error(err);
});
// [END automl_natural_language_sentiment_deploy_model]
// [END automl_language_sentiment_deploy_model]
}
main(...process.argv.slice(2)).catch(console.error());

0 comments on commit bab8fcb

Please sign in to comment.