@@ -19,10 +19,6 @@ function main(
19
19
location = 'us-central1' ,
20
20
datasetId = 'YOUR_DATASET_ID'
21
21
) {
22
- // [START automl_language_entity_extraction_get_dataset]
23
- // [START automl_language_sentiment_analysis_get_dataset]
24
- // [START automl_language_text_classification_get_dataset]
25
- // [START automl_translate_get_dataset]
26
22
// [START automl_vision_classification_get_dataset]
27
23
// [START automl_vision_object_detection_get_dataset]
28
24
/**
@@ -56,29 +52,20 @@ function main(
56
52
console . log ( 'Dataset create time' ) ;
57
53
console . log ( `\tseconds ${ response . createTime . seconds } ` ) ;
58
54
console . log ( `\tnanos ${ response . createTime . nanos / 1e9 } ` ) ;
59
- // [END automl_language_sentiment_analysis_get_dataset]
60
- // [END automl_language_text_classification_get_dataset]
61
- // [END automl_translate_get_dataset]
62
55
// [END automl_vision_classification_get_dataset]
63
56
// [END automl_vision_object_detection_get_dataset]
64
57
console . log (
65
58
`Text extraction dataset metadata: ${ response . textExtractionDatasetMetadata } `
66
59
) ;
67
- // [END automl_language_entity_extraction_get_dataset]
68
60
69
- // [START automl_language_sentiment_analysis_get_dataset]
70
61
console . log (
71
62
`Text sentiment dataset metadata: ${ response . textSentimentDatasetMetadata } `
72
63
) ;
73
- // [END automl_language_sentiment_analysis_get_dataset]
74
64
75
- // [START automl_language_text_classification_get_dataset]
76
65
console . log (
77
66
`Text classification dataset metadata: ${ response . textClassificationDatasetMetadata } `
78
67
) ;
79
- // [END automl_language_text_classification_get_dataset]
80
68
81
- // [START automl_translate_get_dataset]
82
69
if ( response . translationDatasetMetadata !== undefined ) {
83
70
console . log ( 'Translation dataset metadata:' ) ;
84
71
console . log (
@@ -88,7 +75,6 @@ function main(
88
75
`\tTarget language code: ${ response . translationDatasetMetadata . targetLanguageCode } `
89
76
) ;
90
77
}
91
- // [END automl_translate_get_dataset]
92
78
93
79
// [START automl_vision_classification_get_dataset]
94
80
console . log (
@@ -100,18 +86,10 @@ function main(
100
86
console . log (
101
87
`Image object detection dataset metatdata: ${ response . imageObjectDetectionDatasetMetatdata } `
102
88
) ;
103
- // [START automl_language_entity_extraction_get_dataset]
104
- // [START automl_language_sentiment_analysis_get_dataset]
105
- // [START automl_language_text_classification_get_dataset]
106
- // [START automl_translate_get_dataset]
107
89
// [START automl_vision_classification_get_dataset]
108
90
}
109
91
110
92
getDataset ( ) ;
111
- // [END automl_language_entity_extraction_get_dataset]
112
- // [END automl_language_sentiment_analysis_get_dataset]
113
- // [END automl_language_text_classification_get_dataset]
114
- // [END automl_translate_get_dataset]
115
93
// [END automl_vision_classification_get_dataset]
116
94
// [END automl_vision_object_detection_get_dataset]
117
95
}
0 commit comments