Specified nmt type model for translation.

This commit is contained in:
Patrick Connolly
2018-10-24 01:41:16 +08:00
parent ccadda3ec2
commit f59eb23474

View File

@@ -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