Skip to content

Automl - minor bug fixes #1168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Aug 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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