Skip to content

Translate with model param changes #410

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 5 commits into from
Nov 15, 2016
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
added space after comment
  • Loading branch information
puneithk committed Nov 15, 2016
commit 78dfdadd157aa3182fe0acb7a6ffa9cdcdfa4124
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static void translateTextWithOptions(
TranslateOption srcLang = TranslateOption.sourceLanguage(sourceLang);
TranslateOption tgtLang = TranslateOption.targetLanguage(targetLang);

//Use translate `model` parameter with `base` and `nmt` options
// Use translate `model` parameter with `base` and `nmt` options.
TranslateOption model = TranslateOption.model("base");

Translation translation = translate.translate(sourceText, srcLang, tgtLang, model);
Expand Down