Skip to content

Commit 37cc6c0

Browse files
committed
Changes default model to NMT
1 parent 921e8be commit 37cc6c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

8181
// Use translate `model` parameter with `base` and `nmt` options.
82-
TranslateOption model = TranslateOption.model("base");
82+
TranslateOption model = TranslateOption.model("nmt");
8383

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

0 commit comments

Comments
 (0)