Skip to content

Commit e60d731

Browse files
nirupa-kumarnnegrey
authored andcommitted
Automl - minor bug fixes (GoogleCloudPlatform#1168)
* Test push * Vision AutoML * Vision AutoML updates + Translate AutoML * Translate README fixes * Fixing Kokoro failure issue * Language AutoML * Vision AutoML * Translate AutoML files added * Triggering tests * Triggering tests * Updates based on comments * Updates after review comments * Fixed build issue * Fixed build issue * Fix other bugs after review * pom file updates * region tag modification * bucket name update for language * other minor updates
1 parent aab3b73 commit e60d731

7 files changed

Lines changed: 7 additions & 8 deletions

File tree

language/automl/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
-->
1616
<project>
1717
<modelVersion>4.0.0</modelVersion>
18-
<groupId>com.example.vision</groupId>
18+
<groupId>com.google.cloud.language.samples</groupId>
1919
<artifactId>language-automl</artifactId>
2020
<packaging>jar</packaging>
2121

language/automl/src/main/java/com/google/cloud/language/samples/ModelApi.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,14 @@ public static void listModels(String projectId, String computeRegion, String fil
131131
LocationName projectLocation = LocationName.of(projectId, computeRegion);
132132

133133
// Create list models request.
134-
ListModelsRequest listModlesRequest =
134+
ListModelsRequest listModelsRequest =
135135
ListModelsRequest.newBuilder()
136136
.setParent(projectLocation.toString())
137137
.setFilter(filter)
138138
.build();
139139

140140
System.out.println("List of models:");
141-
for (Model model : client.listModels(listModlesRequest).iterateAll()) {
141+
for (Model model : client.listModels(listModelsRequest).iterateAll()) {
142142
// Display the model information.
143143
System.out.println(String.format("Model name: %s", model.getName()));
144144
System.out.println(

language/automl/src/test/java/com/google/cloud/language/samples/DatasetApiIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
public class DatasetApiIT {
3535

3636
private static final String PROJECT_ID = "java-docs-samples-testing";
37-
private static final String BUCKET = PROJECT_ID + "-vcm";
37+
private static final String BUCKET = PROJECT_ID + "-lcm";
3838
private static final String COMPUTE_REGION = "us-central1";
3939
private static final String DATASET_NAME = "test_language_dataset";
4040
private ByteArrayOutputStream bout;

translate/automl/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright 2016 Google Inc.
2+
Copyright 2018 Google Inc.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

translate/automl/src/main/java/com/google/cloud/translate/automl/DatasetApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
*/
4646
public class DatasetApi {
4747

48-
// [START automl_translate_create_dataset]
48+
// [START automl_translation_create_dataset]
4949
/**
5050
* Demonstrates using the AutoML client to create a dataset
5151
*

translate/automl/src/test/java/com/google/cloud/translate/automl/PredictionApiIT.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package com.google.cloud.translate.automl;
1818

1919
import static com.google.common.truth.Truth.assertThat;
20-
import static java.lang.Boolean.FALSE;
2120

2221
import java.io.ByteArrayOutputStream;
2322
import java.io.PrintStream;

vision/automl/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
-->
1616
<project>
1717
<modelVersion>4.0.0</modelVersion>
18-
<groupId>com.example.vision</groupId>
18+
<groupId>com.example.vision.samples.automl</groupId>
1919
<artifactId>vision-automl</artifactId>
2020
<packaging>jar</packaging>
2121

0 commit comments

Comments
 (0)