Skip to content

Commit

Permalink
samples: adds batch prediction samples for text (#119)
Browse files Browse the repository at this point in the history
* samples: adds batch prediction samples for text

* samples: added tests

* 🦉 Updates from OwlBot

* fix: lint

* fix: lint

* fix: docs test

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
telpirion and gcf-owl-bot[bot] authored May 7, 2021
1 parent add227d commit 1e654c7
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/google-cloud-aiplatform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-ai-platform
| --------------------------- | --------------------------------- | ------ |
| Cancel-batch-prediction-job | [source code](https://github.com/googleapis/nodejs-ai-platform/blob/master/samples/cancel-batch-prediction-job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-ai-platform&page=editor&open_in_editor=samples/cancel-batch-prediction-job.js,samples/README.md) |
| Cancel-custom-job | [source code](https://github.com/googleapis/nodejs-ai-platform/blob/master/samples/cancel-custom-job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-ai-platform&page=editor&open_in_editor=samples/cancel-custom-job.js,samples/README.md) |
| Create-batch-prediction-job-text-classification | [source code](https://github.com/googleapis/nodejs-ai-platform/blob/master/samples/create-batch-prediction-job-text-classification.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-ai-platform&page=editor&open_in_editor=samples/create-batch-prediction-job-text-classification.js,samples/README.md) |
| Create-batch-prediction-job-text-entity-extraction | [source code](https://github.com/googleapis/nodejs-ai-platform/blob/master/samples/create-batch-prediction-job-text-entity-extraction.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-ai-platform&page=editor&open_in_editor=samples/create-batch-prediction-job-text-entity-extraction.js,samples/README.md) |
| Create-batch-prediction-job-text-sentiment-analysis | [source code](https://github.com/googleapis/nodejs-ai-platform/blob/master/samples/create-batch-prediction-job-text-sentiment-analysis.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-ai-platform&page=editor&open_in_editor=samples/create-batch-prediction-job-text-sentiment-analysis.js,samples/README.md) |
| Create-batch-prediction-job-video-classification | [source code](https://github.com/googleapis/nodejs-ai-platform/blob/master/samples/create-batch-prediction-job-video-classification.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-ai-platform&page=editor&open_in_editor=samples/create-batch-prediction-job-video-classification.js,samples/README.md) |
| Create-batch-prediction-job-video-object-tracking | [source code](https://github.com/googleapis/nodejs-ai-platform/blob/master/samples/create-batch-prediction-job-video-object-tracking.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-ai-platform&page=editor&open_in_editor=samples/create-batch-prediction-job-video-object-tracking.js,samples/README.md) |
| Create-custom-job | [source code](https://github.com/googleapis/nodejs-ai-platform/blob/master/samples/create-custom-job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-ai-platform&page=editor&open_in_editor=samples/create-custom-job.js,samples/README.md) |
Expand Down
5 changes: 4 additions & 1 deletion packages/google-cloud-aiplatform/linkinator.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"skip": [
"https://codecov.io/gh/googleapis/",
"www.googleapis.com",
"img.shields.io"
"img.shields.io",
"https://github.com/googleapis/nodejs-ai-platform/blob/master/samples/create-batch-prediction-job-text-classification.js",
"https://github.com/googleapis/nodejs-ai-platform/blob/master/samples/create-batch-prediction-job-text-entity-extraction.js",
"https://github.com/googleapis/nodejs-ai-platform/blob/master/samples/create-batch-prediction-job-text-sentiment-analysis.js"
],
"silent": true,
"concurrency": 10
Expand Down
54 changes: 54 additions & 0 deletions packages/google-cloud-aiplatform/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
* [Samples](#samples)
* [Cancel-batch-prediction-job](#cancel-batch-prediction-job)
* [Cancel-custom-job](#cancel-custom-job)
* [Create-batch-prediction-job-text-classification](#create-batch-prediction-job-text-classification)
* [Create-batch-prediction-job-text-entity-extraction](#create-batch-prediction-job-text-entity-extraction)
* [Create-batch-prediction-job-text-sentiment-analysis](#create-batch-prediction-job-text-sentiment-analysis)
* [Create-batch-prediction-job-video-classification](#create-batch-prediction-job-video-classification)
* [Create-batch-prediction-job-video-object-tracking](#create-batch-prediction-job-video-object-tracking)
* [Create-custom-job](#create-custom-job)
Expand Down Expand Up @@ -127,6 +130,57 @@ __Usage:__



### Create-batch-prediction-job-text-classification

View the [source code](https://github.com/googleapis/nodejs-ai-platform/blob/master/samples/create-batch-prediction-job-text-classification.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-ai-platform&page=editor&open_in_editor=samples/create-batch-prediction-job-text-classification.js,samples/README.md)

__Usage:__


`node samples/create-batch-prediction-job-text-classification.js`


-----




### Create-batch-prediction-job-text-entity-extraction

View the [source code](https://github.com/googleapis/nodejs-ai-platform/blob/master/samples/create-batch-prediction-job-text-entity-extraction.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-ai-platform&page=editor&open_in_editor=samples/create-batch-prediction-job-text-entity-extraction.js,samples/README.md)

__Usage:__


`node samples/create-batch-prediction-job-text-entity-extraction.js`


-----




### Create-batch-prediction-job-text-sentiment-analysis

View the [source code](https://github.com/googleapis/nodejs-ai-platform/blob/master/samples/create-batch-prediction-job-text-sentiment-analysis.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-ai-platform&page=editor&open_in_editor=samples/create-batch-prediction-job-text-sentiment-analysis.js,samples/README.md)

__Usage:__


`node samples/create-batch-prediction-job-text-sentiment-analysis.js`


-----




### Create-batch-prediction-job-video-classification

View the [source code](https://github.com/googleapis/nodejs-ai-platform/blob/master/samples/create-batch-prediction-job-video-classification.js).
Expand Down

0 comments on commit 1e654c7

Please sign in to comment.