LoginSignup
12
7

More than 3 years have passed since last update.

BluemixのLanguage Translatorで日本語の翻訳機能を試してみた

Last updated at Posted at 2016-12-16

前置き

Bluemixで利用できるWatson APIの中で、翻訳の機能を持つ「Language Translator」というAPIがあります。

日本語は言語判別機能のみの提供でしたが、いつの間にか日本語 -> 英語、及び英語 -> 日本語の翻訳に対応していました。

こちらの機能を確認していきたいと思います。

提供開始

まず、日本語の提供に関してはDocument上に正式に記載はありません。
lt1.png

しかしAPIでmodelを取得すると、

curl -u "{username}":"{password}" "https://gateway.watsonplatform.net/language-translation/api/v2/models"
…

{
      "model_id": "en-ja",
      "source": "en",
      "target": "ja",
      "base_model_id": "",
      "domain": "news",
      "customizable": true,
      "default_model": true,
      "owner": "",
      "status": "available",
      "name": "",
      "train_log": null
    },

…

 {
      "model_id": "ja-en",
      "source": "ja",
      "target": "en",
      "base_model_id": "",
      "domain": "news",
      "customizable": true,
      "default_model": true,
      "owner": "",
      "status": "available",
      "name": "",
      "train_log": null
    },

…

日本語翻訳ができるようになっています!!

翻訳機能の確認

今回はBluemixのサービスであるWatson Machine Learningの説明文である以下の文章を日本語に翻訳してみました。

IBM Watson Machine Learning is a full-service Bluemix offering that makes it easy for developers and data scientists to work together to integrate predictive capabilities with their applications. Built on IBM's proven SPSS analytics platform, Machine Learning allows you to develop applications that make smarter decisions, solve tough problems, and improve user outcomes.

結果はこちらです。

IBMワトソンの機械学習を簡単に開発者やデータ科学者はアプリケーションで予測機能を統合するために一緒に作業できるようになりBluemixサービス・オファリングです。 SPSSの分析プラットフォーム「機械学習」、よりスマートな意思決定を行うアプリケーションを開発するには、難しい問題を解決可能にする実績あるIBMの上に構築し、ユーザー結果を改善します。

なるほど…
ちなみにGoogle翻訳だとこうです。

IBM Watson Machine Learningは、開発者とデータ・サイエンティストが協力して予測機能をアプリケーションと容易に統合できるフル・サービスのBluemix製品です。 IBMの実証済みのSPSS分析プラットフォーム上に構築されたMachine Learningを使用すると、賢明な意思決定、厳しい問題の解決、ユーザー成果の向上を実現するアプリケーションを開発できます。

これはすごい。よく翻訳できています。

Watsonの方はまだトレーニングをする必要がありそうです。

Node-REDでの利用

また、Bluemixで利用可能な開発ツールであるNode-RED上でも日本語は利用できるようになっています。
lt3.png

これにより、様々なアプリケーションにシームレスに統合できますね!

ということで、以前作成した多言語チャットに日本語を組み込んでみました。
lt2.png

簡単な会話程度なら問題なく翻訳できているようです。

モデルのトレーニング

Watsonに欠かせない要素であるトレーニング。
もちろんこのLanguage Translatorでも言語の翻訳モデルをトレーニングすることが可能です。

例えば各企業の専門用語などをトレーニングすれば、業界や業種に特化した翻訳モデルの作成をすることができます。

これはまた別の機会に試してみたいと思います。

まとめ

Watsonの翻訳機能で念願の日本語翻訳機能が利用できるようになりました。まだまだトレーニングの必要がありそうですが、今後のアップデートに期待しています!

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