Skip to content

Commit

Permalink
chore: update region tags (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
telpirion authored Apr 8, 2020
1 parent e448b46 commit 3c7ee11
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions document-ai/snippets/batch_parse_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function main(
gcsOutputUriPrefix = uuid.v4(),
gcsInputUri = 'gs://cloud-samples-data/documentai/invoice.pdf'
) {
// [START document_parse_form]
// [START documentai_batch_parse_form]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand Down Expand Up @@ -133,7 +133,7 @@ async function main(
}
});
}
// [END document_parse_form]
// [END documentai_batch_parse_form]

parseFormGCS(gcsInputUri, gcsOutputUri, gcsOutputUriPrefix);
}
Expand Down
4 changes: 2 additions & 2 deletions document-ai/snippets/batch_parse_table.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function main(
gcsOutputUriPrefix = uuid.v4(),
gcsInputUri = 'gs://cloud-samples-data/documentai/invoice.pdf'
) {
// [START document_parse_table]
// [START documentai_batch_parse_table]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand Down Expand Up @@ -141,7 +141,7 @@ async function main(
}
});
}
// [END document_parse_table]
// [END documentai_batch_parse_table]

parseTableGCS(gcsInputUri, gcsOutputUri, gcsOutputUriPrefix);
}
Expand Down
4 changes: 2 additions & 2 deletions document-ai/snippets/parse_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async function main(
location,
gcsInputUri = 'gs://cloud-samples-data/documentai/invoice.pdf'
) {
// [START document_quickstart]
// [START documentai_parse_form]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand Down Expand Up @@ -92,7 +92,7 @@ async function main(
console.log(`\t(${fieldName}, ${fieldValue})`);
}
}
// [END document_quickstart]
// [END documentai_parse_form]
await parseForm();
}

Expand Down
4 changes: 2 additions & 2 deletions document-ai/snippets/parse_table.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async function main(
location,
gcsInputUri = 'gs://cloud-samples-data/documentai/invoice.pdf'
) {
// [START document_quickstart]
// [START documentai_parse_table]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand Down Expand Up @@ -102,7 +102,7 @@ async function main(
}
}
}
// [END document_quickstart]
// [END documentai_parse_table]
await parseTable();
}

Expand Down
4 changes: 2 additions & 2 deletions document-ai/snippets/parse_with_model.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async function main(
autoMLModel,
gcsInputUri = 'gs://cloud-samples-data/documentai/invoice.pdf'
) {
// [START document_quickstart]
// [START documentai_parse_with_model]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand Down Expand Up @@ -66,7 +66,7 @@ async function main(
console.log(`Confidence: ${label.confidence}`);
}
}
// [END document_quickstart]
// [END documentai_parse_with_model]
await parseWithModel();
}

Expand Down
4 changes: 2 additions & 2 deletions document-ai/snippets/quickstart.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async function main(
location,
gcsInputUri = 'gs://cloud-samples-data/documentai/invoice.pdf'
) {
// [START document_quickstart]
// [START documentai_quickstart]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand Down Expand Up @@ -73,7 +73,7 @@ async function main(
console.log(`Entity mention text: ${entity.mentionText}`);
}
}
// [END document_quickstart]
// [END documentai_quickstart]
await quickstart();
}

Expand Down
4 changes: 2 additions & 2 deletions document-ai/snippets/set_endpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async function main(
location = 'europe-west2',
gcsInputUri = 'gs://cloud-samples-data/documentai/invoice.pdf'
) {
// [START document_quickstart]
// [START documentai_set_endpoint]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand Down Expand Up @@ -76,7 +76,7 @@ async function main(
console.log(`Entity mention text: ${entity.mentionText}`);
}
}
// [END document_quickstart]
// [END documentai_set_endpoint]
await setEndpoint();
}

Expand Down

0 comments on commit 3c7ee11

Please sign in to comment.