最近のアクセス:
DetectLanguage プロシージャー
表記されたテキストの言語を特定します。

パラメーター

  • in:&text:: Text, GeneXusAI
    言語を検出するプレーンテキストです。
  • in:&provider :: Provider, GeneXusAI.Configuration
    プロバイダーの設定です。
  • inout:&Messages :: Messages, GeneXus.Common
    タスクによって返された警告メッセージとエラーメッセージのコレクションです。エラーが返された場合はコードの内容を確認してください。詳細については、エラーコードと説明を参照してください。
  • out:&OutputLabel:: OutputRegion, GeneXusAI
    確度の高い検出された言語を表すラベル (2 文字のコード) です。

設定

次の表に、この AI タスクを使用する際に設定する必要があるプロパティ (アクセスに必要な資格情報) を示します。
PropertyKey
ProviderType


プロバイダー Id Key SecretKey
Alibaba - - -
Amazon - Comprehend Comprehend
Baidu 通用翻译 通用翻译 通用翻译
Google - Cloud Translation API -
IBM - Language Translator -
Microsoft - Translator Text -
SAP - Sandbox Environment -
Tencent 语种识别 语种识别 -

下記の表に、次のテキストを入力とした場合に行われる言語認識 (JSON 構造として) とその処理の所要時間をプロバイダー別に示します。
"The first question that comes up is: What is GeneXus? GeneXus is a tool that automatically generates software programs such as applications for the Web, and Smart Devices, always at the forefront of technological evolution."

プロバイダー 出力 ベンチマーク
Alibaba N/A N/A
Amazon
{
    "label": "en", "confidence": 0.994
}
1016ms
Baidu
{
    "label": "en", "confidence": 1.000
}
2460ms
Google
{
    "label": "en", "confidence": 1.000
}
817ms
IBM
{
    "label": "en", "confidence": 0.999
}
3595ms
Microsoft
{
    "label": "en", "confidence": 1.000
}
2912ms
SAP
{
    "label": "en", "confidence": 1.000
}
2355ms
Tencent
{
    "label": "en", "confidence": 1.000
}
3148ms

言語があいまいなソーステキストを対象とした場合は、次のようになります。
"The first question that comes up is: ¿Qué es GeneXus? GeneXus is a tool that automatically generates software programs como aplicaciones Web, y Smart Devices, always at the forefront of la evolución tecnlológica."

プロバイダー

出力

ベンチマーク
Alibaba N/A N/A
Amazon
{
    "label": "en", "confidence": 0.807
}
1049ms
Baidu
{
    "label": "spa",
    "confidence": 1
}
2747ms
Google
{
    "label": "en", "confidence": 0.855
}
703ms
IBM
{
    "label": "es",
    "confidence": 0.797
}
3595ms
Microsoft
{
    "label": "en", "confidence": 1.000
}
2912ms
SAP
{
    "label": "en", "confidence": 0.999
}
2989ms
Tencent
{
    "label": "en", "confidence": 1.000
}
2293ms

  • 割り当てられるラベルは、ISO 639-1 に基づく 2 文字のコードになります。

適用範囲

対応しているプラットフォーム: Web (.NET、.NET Core、Java)、スマートデバイス (Android、iOS)
接続 オンライン

使用可能バージョン

このプロシージャーは、GeneXus 16 以降で利用できます。




サブページ
Created: 19/03/25 18:00 by Admin Last update: 20/01/13 18:06 by Admin
カテゴリ
Powered by GXwiki 3.0