リアルタイム翻訳
OCI Language Real-time Translationを使用して、アプリケーションのインテリジェントな多言語サービスを構築します。
リアルタイム翻訳は、当社の機械翻訳サービスを使用して、サポートされているすべての言語にわたって、効率的で正確なソースからターゲットへのテキスト翻訳をリアルタイムで実現します。テキストは、プレーン・テキストまたはHTMLです。HTMLタグは翻訳されません。タグの間に表示されるテキストのみが翻訳されます。
ユース・ケース
- ソーシャル・メッセージング・アプリケーション、電子メールまたはサポート・チケット、ライブ・チャットを通じてカスタマー・サポート・インタラクションをサポート・エンジニアの優先言語にリアルタイムで翻訳します。
- チャットボットなどの多言語のライブ・アプリケーションを作成することは、困難な場合があります。かわりに、開発者はLanguage Detectを使用して問合せ言語を検出し、チャットボットの元の言語との間で自動翻訳を実行できます。
- オンライン広告会社は、広告を取り巻くコンテンツを分析し、ブランドセーフティを確保するために、何百万ものWebページをクロールします。ブランド・セーフティは、広告主がターゲット・オーディエンスに適した場所で広告をホストするのに役立ちます。通常、広告会社は地域言語でWebページをクロールします。テキストを分類する前に、広告主はコンテンツを英語に翻訳し、テキスト分類と組み合わせることができます。
テキスト翻訳の防止
翻訳を防止するには、次の方法を使用してコンテンツをタグ付けします。
<span translate="no">
の使用BODY [ "En français, ils appellent le musée du Louvre <span class=\"notranslate\">le musée du Louvre</span>", "En français, ils appellent le musée du Louvre <span>le musée du Louvre</span>", "En français, ils appellent le musée du Louvre <div class=\"notranslate\">le musée du Louvre</div>", "En français, ils appellent le musée du Louvre <div>le musée du Louvre</div>" ] Result: [ "In French, they call the Louvre Museum <span class=\"notranslate\">le musée du Louvre</span>", "In French they call the Louvre Museum <span>the Louvre Museum</span>", "In French, they call the Louvre Museum <div class=\"notranslate\">le musée du Louvre</div>", "In French they call the Louvre Museum <div>the Louvre Museum</div>" ]
<span class="notranslate">
の使用BODY [ "En français, ils appellent le musée du Louvre <span class=\"notranslate\">le musée du Louvre</span>", "En français, ils appellent le musée du Louvre <span>le musée du Louvre</span>", "En français, ils appellent le musée du Louvre <div class=\"notranslate\">le musée du Louvre</div>", "En français, ils appellent le musée du Louvre <div>le musée du Louvre</div>" ] Result: [ "In French, they call the Louvre Museum <span class=\"notranslate\">le musée du Louvre</span>", "In French they call the Louvre Museum <span>the Louvre Museum</span>", "In French, they call the Louvre Museum <div class=\"notranslate\">le musée du Louvre</div>", "In French they call the Louvre Museum <div>the Louvre Museum</div>" ]
翻訳のカスタマイズ- インライン辞書
インライン・ディクショナリ機能を使用すると、特定の用語またはフレーズの翻訳をカスタマイズできます。単語またはフレーズに適用する翻訳がすでにわかっている場合は、リクエスト内でマークアップとして指定できます。
インライン辞書機能は、固有の名前や製品名などの複合名詞に対してのみ安全です。この機能は慎重に使用することをお薦めします。
<oratrans:dictionary translation="Bonjour">Hello</oratrans:dictionary>
リアルタイム変換の実行
言語サービスを使用してリアルタイム翻訳を実行します。
1つ以上のファイルを翻訳するには、oci ai language batch-language-translationコマンドと必要なパラメータを使用します:
oci ai language batch-language-translation --documents [<list-of-documents>] ... [OPTIONS]
CLIコマンドのフラグおよび変数オプションの完全なリストは、CLIコマンドライン・リファレンスを参照してください。
BatchLanguageTranslation操作を実行してテキストを翻訳します。