diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java index 357bd88f26d..12f63d4d50c 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -46,7 +46,7 @@ public class BatchTranslateTextWithGlossaryAndModelTests { private static final String INPUT_URI = "gs://cloud-samples-data/translation/text_with_custom_model_and_glossary.txt"; private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; - private static final String MODEL_ID = "TRL2188848820815848149"; + private static final String MODEL_ID = "TRL3645318651705294848"; private static final String PREFIX = "BATCH_TRANSLATION_WITH_MODEL_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java index fd16802cd36..5971609673f 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java @@ -45,7 +45,7 @@ public class BatchTranslateTextWithModelTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String INPUT_URI = "gs://cloud-samples-data/translation/custom_model_text.txt"; - private static final String MODEL_ID = "TRL2188848820815848149"; + private static final String MODEL_ID = "TRL3645318651705294848"; private static final String PREFIX = "BATCH_TRANSLATION_MODEL_GLOS_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java index 1e160921501..b25d7652717 100644 --- a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java @@ -34,7 +34,7 @@ @SuppressWarnings("checkstyle:abbreviationaswordinname") public class TranslateTextWithGlossaryAndModelTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); - private static final String MODEL_ID = "TRL2188848820815848149"; + private static final String MODEL_ID = "TRL3645318651705294848"; private static final String GLOSSARY_INPUT_URI = "gs://cloud-samples-data/translation/glossary_ja.csv"; private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; @@ -78,7 +78,7 @@ public void testTranslateTextWithGlossaryAndModel() throws IOException { TranslateTextWithGlossaryAndModel.translateTextWithGlossaryAndModel( PROJECT_ID, "en", "ja", "That' il do it. deception", GLOSSARY_ID, MODEL_ID); String got = bout.toString(); - assertThat(got).contains("それはそうだ"); // custom model + assertThat(got).contains("やるよ欺く"); // custom model assertThat(got).contains("欺く"); // glossary } } diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java index 5d9a853e90d..6c986c3b0a4 100644 --- a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java @@ -34,7 +34,7 @@ @SuppressWarnings("checkstyle:abbreviationaswordinname") public class TranslateTextWithModelTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); - private static final String MODEL_ID = "TRL2188848820815848149"; + private static final String MODEL_ID = "TRL3645318651705294848"; private ByteArrayOutputStream bout; private PrintStream out; @@ -72,6 +72,6 @@ public void testTranslateTextWithModel() throws IOException { TranslateTextWithModel.translateTextWithModel( PROJECT_ID, "en", "ja", "That' il do it. deception", MODEL_ID); String got = bout.toString(); - assertThat(got).contains("それはそうだ"); + assertThat(got).contains("やるよ欺瞞"); } }