52
52
*/
53
53
public class ModelApi {
54
54
55
- // [START automl_natural_language_create_model ]
55
+ // [START automl_language_create_model ]
56
56
/**
57
57
* Demonstrates using the AutoML client to create a model.
58
58
*
@@ -92,9 +92,9 @@ public static void createModel(
92
92
String .format ("Training operation name: %s" , response .getInitialFuture ().get ().getName ()));
93
93
System .out .println ("Training started..." );
94
94
}
95
- // [END automl_natural_language_create_model ]
95
+ // [END automl_language_create_model ]
96
96
97
- // [START automl_natural_language_get_operation_status ]
97
+ // [START automl_language_get_operation_status ]
98
98
/**
99
99
* Demonstrates using the AutoML client to get operation status.
100
100
*
@@ -111,9 +111,9 @@ public static void getOperationStatus(String operationFullId) throws IOException
111
111
112
112
System .out .println (String .format ("Operation status: %s" , response ));
113
113
}
114
- // [END automl_natural_language_get_operation_status ]
114
+ // [END automl_language_get_operation_status ]
115
115
116
- // [START automl_natural_language_list_models ]
116
+ // [START automl_language_list_models ]
117
117
/**
118
118
* Demonstrates using the AutoML client to list all models.
119
119
*
@@ -151,9 +151,9 @@ public static void listModels(String projectId, String computeRegion, String fil
151
151
System .out .println (String .format ("Model deployment state: %s" , model .getDeploymentState ()));
152
152
}
153
153
}
154
- // [END automl_natural_language_list_models ]
154
+ // [END automl_language_list_models ]
155
155
156
- // [START automl_natural_language_get_model ]
156
+ // [START automl_language_get_model ]
157
157
/**
158
158
* Demonstrates using the AutoML client to get model details.
159
159
*
@@ -184,9 +184,9 @@ public static void getModel(String projectId, String computeRegion, String model
184
184
System .out .println (String .format ("\t nanos: %s" , model .getCreateTime ().getNanos ()));
185
185
System .out .println (String .format ("Model deployment state: %s" , model .getDeploymentState ()));
186
186
}
187
- // END automl_natural_language_get_model ]
187
+ // END automl_language_get_model ]
188
188
189
- // [START automl_natural_language_list_model_evaluations ]
189
+ // [START automl_language_list_model_evaluations ]
190
190
/**
191
191
* Demonstrates using the AutoML client to list model evaluations.
192
192
*
@@ -217,9 +217,9 @@ public static void listModelEvaluations(
217
217
System .out .println (element );
218
218
}
219
219
}
220
- // [END automl_natural_language_list_model_evaluations ]
220
+ // [END automl_language_list_model_evaluations ]
221
221
222
- // [START automl_natural_language_get_model_evaluation ]
222
+ // [START automl_language_get_model_evaluation ]
223
223
/**
224
224
* Demonstrates using the AutoML client to get model evaluations.
225
225
*
@@ -244,9 +244,9 @@ public static void getModelEvaluation(
244
244
245
245
System .out .println (response );
246
246
}
247
- // [END automl_natural_language_get_model_evaluation ]
247
+ // [END automl_language_get_model_evaluation ]
248
248
249
- // [START automl_natural_language_display_evaluation ]
249
+ // [START automl_language_display_evaluation ]
250
250
/**
251
251
* Demonstrates using the AutoML client to display model evaluation.
252
252
*
@@ -317,9 +317,9 @@ public static void displayEvaluation(
317
317
}
318
318
}
319
319
}
320
- // [END automl_natural_language_display_evaluation ]
320
+ // [END automl_language_display_evaluation ]
321
321
322
- // [START automl_natural_language_delete_model ]
322
+ // [START automl_language_delete_model ]
323
323
/**
324
324
* Demonstrates using the AutoML client to delete a model.
325
325
*
@@ -341,7 +341,7 @@ public static void deleteModel(String projectId, String computeRegion, String mo
341
341
342
342
System .out .println ("Model deletion started..." );
343
343
}
344
- // [END automl_natural_language_delete_model ]
344
+ // [END automl_language_delete_model ]
345
345
346
346
public static void main (String [] args ) throws Exception {
347
347
ModelApi modelApi = new ModelApi ();
0 commit comments