3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Microsoft Translate API を用いた Slack ニューラルネット翻訳コマンドの実装

Posted at

以前、Microsoft Translate API を用いた Slack 翻訳コマンドの実装という記事を書いたのですが
自動要約&ニューラルネット翻訳で海外の記事を読みやすくするSlackBotという記事からリンク貼っていただき気づきました。

CATEGORYgeneralnnを設定するとニューラルネット翻訳。

なるほどです。。。

以下修正しました。

-   var translate_url = "http://api.microsofttranslator.com/v2/Http.svc/Translate?from=" + from + "&to=" + to + "&text=" + encodeURIComponent(text);
+   var translate_url = "http://api.microsofttranslator.com/v2/Http.svc/Translate?from=" + from + "&to=" + to + "&category=generalnn&text=" + encodeURIComponent(text);

修正前

Screen Shot 2016-12-06 at 20.48.09.png

修正後

Screen Shot 2016-12-19 at 19.11.18.png

おお :tada:

(追記でよかったのですが。。。)

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?