Model - Examples
获取应用程序中给定意向或实体模型的示例话语。
GET {Endpoint}/luis/api/v2.0/apps/{appId}/versions/{versionId}/models/{modelId}/examples
GET {Endpoint}/luis/api/v2.0/apps/{appId}/versions/{versionId}/models/{modelId}/examples?skip={skip}&take={take}
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
app
|
path | True |
string (uuid) |
应用程序 ID。 |
|
Endpoint
|
path | True |
string |
支持的认知服务终结点(协议和主机名,例如:https://westus.api.cognitive.microsoft.com)。 |
|
model
|
path | True |
string |
模型的 ID (GUID)。 |
|
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 Get Examples Per Model Request
示例请求
GET {Endpoint}/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/models/e4770e43-233a-48ad-a1fa-54f4f97eff9f/examples
示例响应
[
{
"id": 10002,
"text": "Lorem ipsum dolor sit amet"
},
{
"id": 10003,
"text": "consectetur adipiscing elit"
},
{
"id": 10004,
"text": "sed do eiusmod tempor incididunt"
}
]
定义
| 名称 | 说明 |
|---|---|
|
Error |
调用 API 上的作时出现错误响应。 |
|
Label |
包含示例话语文本的对象。 |
ErrorResponse
调用 API 上的作时出现错误响应。
| 名称 | 类型 | 说明 |
|---|---|---|
| errorType |
string |
LabelTextObject
包含示例话语文本的对象。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
integer |
标签的 ID。 |
| text |
string |
标签的文本。 |