From f59eb234748d9ab109cf993770f2bedcfc21e6d2 Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Wed, 24 Oct 2018 01:41:16 +0800 Subject: [PATCH] Specified nmt type model for translation. --- gateway/translation.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gateway/translation.go b/gateway/translation.go index 96f8d12c..e5df071f 100644 --- a/gateway/translation.go +++ b/gateway/translation.go @@ -109,6 +109,7 @@ func (gw *Gateway) handleTranslation(msg *config.Message, dest *bridge.Bridge, c resp, _ := client.Translate(ctx, []string{text}, channelLang, &translate.Options{ Format: "html", + Model: "nmt", }) text = resp[0].Text