Skip to content

Commit

Permalink
Automl - minor bug fixes (#1168)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nirupa-kumar authored and nnegrey committed Aug 1, 2018
1 parent aab3b73 commit e60d731
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion language/automl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
-->
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.example.vision</groupId>
<groupId>com.google.cloud.language.samples</groupId>
<artifactId>language-automl</artifactId>
<packaging>jar</packaging>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,14 @@ public static void listModels(String projectId, String computeRegion, String fil
LocationName projectLocation = LocationName.of(projectId, computeRegion);

// Create list models request.
ListModelsRequest listModlesRequest =
ListModelsRequest listModelsRequest =
ListModelsRequest.newBuilder()
.setParent(projectLocation.toString())
.setFilter(filter)
.build();

System.out.println("List of models:");
for (Model model : client.listModels(listModlesRequest).iterateAll()) {
for (Model model : client.listModels(listModelsRequest).iterateAll()) {
// Display the model information.
System.out.println(String.format("Model name: %s", model.getName()));
System.out.println(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
public class DatasetApiIT {

private static final String PROJECT_ID = "java-docs-samples-testing";
private static final String BUCKET = PROJECT_ID + "-vcm";
private static final String BUCKET = PROJECT_ID + "-lcm";
private static final String COMPUTE_REGION = "us-central1";
private static final String DATASET_NAME = "test_language_dataset";
private ByteArrayOutputStream bout;
Expand Down
2 changes: 1 addition & 1 deletion translate/automl/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Copyright 2016 Google Inc.
Copyright 2018 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
*/
public class DatasetApi {

// [START automl_translate_create_dataset]
// [START automl_translation_create_dataset]
/**
* Demonstrates using the AutoML client to create a dataset
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package com.google.cloud.translate.automl;

import static com.google.common.truth.Truth.assertThat;
import static java.lang.Boolean.FALSE;

import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
Expand Down
2 changes: 1 addition & 1 deletion vision/automl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
-->
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.example.vision</groupId>
<groupId>com.example.vision.samples.automl</groupId>
<artifactId>vision-automl</artifactId>
<packaging>jar</packaging>

Expand Down

0 comments on commit e60d731

Please sign in to comment.