Examples - List
アプリケーションのバージョンからレビューされる発話の例を返します。
GET {Endpoint}/luis/api/v2.0/apps/{appId}/versions/{versionId}/examples
GET {Endpoint}/luis/api/v2.0/apps/{appId}/versions/{versionId}/examples?skip={skip}&take={take}
URI パラメーター
名前 | / | 必須 | 型 | 説明 |
---|---|---|---|---|
app
|
path | True |
string (uuid) |
アプリケーション ID。 |
Endpoint
|
path | True |
string |
サポートされている Cognitive Services エンドポイント (プロトコルとホスト名、例: https://westus.api.cognitive.microsoft.com)。 |
version
|
path | True |
string |
バージョン ID。 |
skip
|
query |
integer minimum: 0 |
スキップするエントリの数。 既定値は 0 です。 |
|
take
|
query |
integer minimum: 0maximum: 500 |
返されるエントリの数。 最大ページ サイズは 500 です。 既定値は 100 です。 |
要求ヘッダー
名前 | 必須 | 型 | 説明 |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
応答
名前 | 型 | 説明 |
---|---|---|
200 OK |
アプリケーション内のすべての発話例の予測とラベルのペアの一覧。 |
|
Other Status Codes |
エラー応答。 |
セキュリティ
Ocp-Apim-Subscription-Key
型:
apiKey
/:
header
例
Successful Review Labeled Examples request
要求のサンプル
GET {Endpoint}/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/examples
応答のサンプル
[
{
"id": -12,
"text": "what's the weather like in seattle?",
"tokenizedText": [
"what",
"'",
"s",
"the",
"weather",
"like",
"in",
"seattle",
"?"
],
"intentLabel": "GetWeather",
"entityLabels": [
{
"entityName": "Location",
"startTokenIndex": 7,
"endTokenIndex": 7
}
],
"intentPredictions": [
{
"name": "GetWeather",
"score": 1
},
{
"name": "None",
"score": 0.21
},
{
"name": "BookFlight",
"score": 0
}
],
"entityPredictions": [
{
"entityName": "Location",
"startTokenIndex": 7,
"endTokenIndex": 7,
"phrase": "seattle"
}
]
},
{
"id": -11,
"text": "book me a flight from cairo to redmond next thursday",
"tokenizedText": [
"book",
"me",
"a",
"flight",
"from",
"cairo",
"to",
"redmond",
"next",
"thursday"
],
"intentLabel": "BookFlight",
"entityLabels": [
{
"entityName": "Location",
"startTokenIndex": 7,
"endTokenIndex": 7,
"role": "To"
},
{
"entityName": "Location",
"startTokenIndex": 5,
"endTokenIndex": 5,
"role": "from"
}
],
"intentPredictions": [
{
"name": "BookFlight",
"score": 0.93
},
{
"name": "None",
"score": 0.41
},
{
"name": "GetWeather",
"score": 0
}
],
"entityPredictions": [
{
"entityName": "datetime",
"startTokenIndex": 8,
"endTokenIndex": 9,
"phrase": "next thursday"
}
]
}
]
定義
名前 | 説明 |
---|---|
Entity |
例内で抽出されたエンティティのエンティティの種類と位置を定義します。 |
Entity |
推奨されるエンティティ。 |
Error |
API で操作を呼び出すときのエラー応答。 |
Intent |
提案された意図。 |
Labeled |
例の予測とラベルのペア。 |
EntityLabel
例内で抽出されたエンティティのエンティティの種類と位置を定義します。
名前 | 型 | 説明 |
---|---|---|
endTokenIndex |
integer |
抽出されたエンティティが終了する発話内のインデックス。 |
entityName |
string |
エンティティ型。 |
role |
string |
発話内のエンティティのロール。 |
roleId |
string |
ロール ID。 |
startTokenIndex |
integer |
抽出されたエンティティが開始される発話内のインデックス。 |
EntityPrediction
推奨されるエンティティ。
名前 | 型 | 説明 |
---|---|---|
endTokenIndex |
integer |
抽出されたエンティティが終了する発話内のインデックス。 |
entityName |
string |
エンティティの名前 |
phrase |
string |
エンティティを構成する実際のトークン。 |
startTokenIndex |
integer |
抽出されたエンティティが開始される発話内のインデックス。 |
ErrorResponse
API で操作を呼び出すときのエラー応答。
名前 | 型 | 説明 |
---|---|---|
errorType |
string |
IntentPrediction
提案された意図。
名前 | 型 | 説明 |
---|---|---|
name |
string |
意図の名前 |
score |
number |
予測モデルに基づく意図のスコア。 |
LabeledUtterance
例の予測とラベルのペア。
名前 | 型 | 説明 |
---|---|---|
entityLabels |
例に一致するエンティティ。 |
|
entityPredictions |
推奨されるエンティティの一覧。 |
|
id |
integer (int64) |
ラベル付き発話の ID。 |
intentLabel |
string |
例に一致する意図。 |
intentPredictions |
提案された意図の一覧。 |
|
text |
string |
発話。 たとえば、"シアトルの天気は何ですか? |
tokenizedText |
string[] |
トークン化された発話。 |