次の方法で共有


Prediction - Get Slot Prediction GET

アプリケーション スロットの予測を取得します。

GET {Endpoint}/luis/prediction/v3.0/apps/{appId}/slots/{slotName}/predict?query={query}
GET {Endpoint}/luis/prediction/v3.0/apps/{appId}/slots/{slotName}/predict?query={query}&verbose={verbose}&show-all-intents={show-all-intents}&log={log}

URI パラメーター

名前 / 必須 説明
appId
path True

string (uuid)

アプリケーション ID。

Endpoint
path True

string

サポートされている Cognitive Services エンドポイント (プロトコルとホスト名、例: https://westus.api.cognitive.microsoft.com)。

slotName
path True

string

アプリケーション スロット名。

query
query True

string

予測するクエリ。

log
query

boolean

エンドポイント クエリをログに記録するかどうかを示します。

show-all-intents
query

boolean

応答内のすべての意図を返すか、上位の意図だけを返すかを示します。

verbose
query

boolean

エンティティ予測の追加メタデータを取得するかどうかを示します。

要求ヘッダー

名前 必須 説明
Ocp-Apim-Subscription-Key True

string

応答

名前 説明
200 OK

PredictionResponse

指定されたクエリの予測。

Other Status Codes

Error

予期しないエラー。

セキュリティ

Ocp-Apim-Subscription-Key

型: apiKey
/: header

Successful Get Slot Predictions From Endpoint Via Get request

要求のサンプル

GET {Endpoint}/luis/prediction/v3.0/apps/{Application Id}/slots/{Slot Name}/predict?query=forward to frank 30 dollars through HSBC

応答のサンプル

{
  "query": "forward to frank 30 dollars through HSBC",
  "prediction": {
    "topIntent": "give",
    "intents": {
      "give": {
        "score": 0.943442
      }
    },
    "entities": {
      "frank": [
        "frank"
      ],
      "number": [
        30
      ],
      "money": [
        {
          "units": "Dollar",
          "value": 30
        }
      ],
      "Bank": [
        "HSBC"
      ]
    },
    "sentiment": {
      "label": "positive",
      "score": 0.9163064
    }
  }
}

定義

名前 説明
Error

発生したエラーを表します。

ErrorBody

発生したエラーの定義を表します。

Intent

意図の予測を表します。

Prediction

クエリの予測を表します。

PredictionResponse

予測応答を表します。

Sentiment

センチメント分析の結果。

Error

発生したエラーを表します。

名前 説明
error

ErrorBody

発生したエラーの定義を表します。

ErrorBody

発生したエラーの定義を表します。

名前 説明
code

string

エラー コード。

message

string

エラー メッセージ。

Intent

意図の予測を表します。

名前 説明
childApp

Prediction

ディスパッチされたアプリケーションの予測。

score

number (float)

発生した意図のスコア。

Prediction

クエリの予測を表します。

名前 説明
alteredQuery

string

スペル チェック後のクエリ。 スペル チェックが有効で、スペル ミスが見つかった場合にのみ設定します。

entities

発生したエンティティを表すディクショナリ。

intents

<string,  Intent>

発生した意図を表すディクショナリ。

sentiment

Sentiment

センチメント分析の結果。

topIntent

string

上位スコア付け意図の名前。

PredictionResponse

予測応答を表します。

名前 説明
prediction

Prediction

要求されたクエリの予測。

query

string

予測で使用されるクエリ。

Sentiment

センチメント分析の結果。

名前 説明
label

string

センチメント分析結果のラベル。

score

number (float)

クエリのセンチメント スコア。