你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Features - Get Phrase List
获取应用程序的某个版本中的短语列表功能信息。
GET {Endpoint}/luis/authoring/v3.0-preview/apps/{appId}/versions/{versionId}/phraselists/{phraselistId}
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
app
|
path | True |
string uuid |
应用程序 ID。 |
Endpoint
|
path | True |
string |
支持的认知服务终结点 (协议和主机名,例如: https://westus.api.cognitive.microsoft.com) 。 |
phraselist
|
path | True |
integer |
要检索的功能的 ID。 |
version
|
path | True |
string |
版本 ID。 |
请求头
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
短语列表功能信息。 |
|
Other Status Codes |
错误响应。 |
安全性
Ocp-Apim-Subscription-Key
Type:
apiKey
In:
header
示例
Successful Get Phraselist Feature Info request
Sample Request
GET {Endpoint}/luis/authoring/v3.0-preview/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/phraselists/178384
Sample Response
{
"id": 178384,
"name": "DaysOfWeek",
"phrases": "monday,tuesday,wednesday,thursday,friday,saturday,sunday",
"isExchangeable": true,
"isActive": true,
"enabledForAllModels": true
}
定义
名称 | 说明 |
---|---|
Error |
在 API 上调用操作时出现错误响应。 |
Phrase |
短语列表功能。 |
ErrorResponse
在 API 上调用操作时出现错误响应。
名称 | 类型 | 说明 |
---|---|---|
errorType |
string |
PhraseListFeatureInfo
短语列表功能。
名称 | 类型 | 说明 |
---|---|---|
enabledForAllModels |
boolean |
指示是否为应用程序中的所有模型启用了该功能。 |
id |
integer |
用于功能的六位数 ID。 |
isActive |
boolean |
指示是否已启用该功能。 |
isExchangeable |
boolean |
可交换短语列表功能作为 LUIS 基础训练算法的单一功能。 它用作词典查找功能,如果词典包含给定单词,则其值为 1;如果不包含,则为 0。 将可交换视为同义词列表。 不可交换短语列表功能使列表中的所有短语都作为基础训练算法的单独特征。 因此,如果短语列表功能包含 5 个短语,它们将映射到 5 个单独的特征。 可以将不可交换短语列表功能视为你愿意添加到 LUIS 现有词汇功能的附加字词包。 将不可交换视为一组不同字词。 默认值为 true。 |
name |
string |
功能的名称。 |
phrases |
string |
逗号分隔值的列表。 |