Skip to content

Commit 1e654c7

Browse files
samples: adds batch prediction samples for text (#119)
* 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>
1 parent add227d commit 1e654c7

File tree

3 files changed

+61
-1
lines changed

3 files changed

+61
-1
lines changed

packages/google-cloud-aiplatform/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-ai-platform
7777
| --------------------------- | --------------------------------- | ------ |
7878
| 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) |
7979
| 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) |
80+
| 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) |
81+
| 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) |
82+
| 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) |
8083
| 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) |
8184
| 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) |
8285
| 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) |

packages/google-cloud-aiplatform/linkinator.config.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
"skip": [
44
"https://codecov.io/gh/googleapis/",
55
"www.googleapis.com",
6-
"img.shields.io"
6+
"img.shields.io",
7+
"https://github.com/googleapis/nodejs-ai-platform/blob/master/samples/create-batch-prediction-job-text-classification.js",
8+
"https://github.com/googleapis/nodejs-ai-platform/blob/master/samples/create-batch-prediction-job-text-entity-extraction.js",
9+
"https://github.com/googleapis/nodejs-ai-platform/blob/master/samples/create-batch-prediction-job-text-sentiment-analysis.js"
710
],
811
"silent": true,
912
"concurrency": 10

packages/google-cloud-aiplatform/samples/README.md

+54
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
* [Samples](#samples)
1515
* [Cancel-batch-prediction-job](#cancel-batch-prediction-job)
1616
* [Cancel-custom-job](#cancel-custom-job)
17+
* [Create-batch-prediction-job-text-classification](#create-batch-prediction-job-text-classification)
18+
* [Create-batch-prediction-job-text-entity-extraction](#create-batch-prediction-job-text-entity-extraction)
19+
* [Create-batch-prediction-job-text-sentiment-analysis](#create-batch-prediction-job-text-sentiment-analysis)
1720
* [Create-batch-prediction-job-video-classification](#create-batch-prediction-job-video-classification)
1821
* [Create-batch-prediction-job-video-object-tracking](#create-batch-prediction-job-video-object-tracking)
1922
* [Create-custom-job](#create-custom-job)
@@ -127,6 +130,57 @@ __Usage:__
127130

128131

129132

133+
### Create-batch-prediction-job-text-classification
134+
135+
View the [source code](https://github.com/googleapis/nodejs-ai-platform/blob/master/samples/create-batch-prediction-job-text-classification.js).
136+
137+
[![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)
138+
139+
__Usage:__
140+
141+
142+
`node samples/create-batch-prediction-job-text-classification.js`
143+
144+
145+
-----
146+
147+
148+
149+
150+
### Create-batch-prediction-job-text-entity-extraction
151+
152+
View the [source code](https://github.com/googleapis/nodejs-ai-platform/blob/master/samples/create-batch-prediction-job-text-entity-extraction.js).
153+
154+
[![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)
155+
156+
__Usage:__
157+
158+
159+
`node samples/create-batch-prediction-job-text-entity-extraction.js`
160+
161+
162+
-----
163+
164+
165+
166+
167+
### Create-batch-prediction-job-text-sentiment-analysis
168+
169+
View the [source code](https://github.com/googleapis/nodejs-ai-platform/blob/master/samples/create-batch-prediction-job-text-sentiment-analysis.js).
170+
171+
[![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)
172+
173+
__Usage:__
174+
175+
176+
`node samples/create-batch-prediction-job-text-sentiment-analysis.js`
177+
178+
179+
-----
180+
181+
182+
183+
130184
### Create-batch-prediction-job-video-classification
131185

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

0 commit comments

Comments
 (0)