Skip to content

Commit 25ab15a

Browse files
committed
changed to base model
1 parent 55ca49e commit 25ab15a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

translate/src/main/java/com/google/cloud/translate/samples/TranslateText.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public static void translateTextWithOptions(
7878
TranslateOption tgtLang = TranslateOption.targetLanguage(targetLang);
7979

8080
//Use translate `model` parameter with `base` and `nmt` options
81-
TranslateOption model = TranslateOption.model("nmt");
81+
TranslateOption model = TranslateOption.model("base");
8282

8383
Translation translation = translate.translate(sourceText, srcLang, tgtLang, model);
8484
out.printf("Source Text:\n\tLang: %s, Text: %s\n", sourceLang, sourceText);

0 commit comments

Comments
 (0)