测试面板 returns json v3 API 格式,而 v2 更可取
Test panel returns json in v3 API format, while v2 is preferable
使用测试面板的当前响应示例:
{
"query": "incident 2",
"prediction": {
"normalizedQuery": "incident 2",
"topIntent": "INCIDENT_DETAILS",
"intents": {
"INCIDENT_DETAILS": {
"score": 0.972139537
}
},
"entities": {
"INCIDENT_NUMBER": [
"2"
],
"$instance": {
"INCIDENT_NUMBER": [
{
"type": "INCIDENT_NUMBER",
"text": "2",
"startIndex": 9,
"length": 1,
"score": 0.989707232,
"modelTypeId": 1,
"modelType": "Entity Extractor",
"recognitionSources": [
"model"
]
}
]
}
}
}
}
v3 之前的内容:
{
"query": "incident 2",
"topScoringIntent": {
"intent": "INCIDENT_DETAILS",
"score": 0.972139537
},
"entities": [
{
"entity": "2",
"type": "INCIDENT_NUMBER",
"startIndex": 9,
"endIndex": 9,
"score": 0.989707232
}
]
}
我是否错过了如何设置应该用于测试面板的 API 版本?显然,如果我们没有这样的选择,真的很不方便。
遗憾的是,无法在 luis.ai 站点内的 API 版本之间切换。这是一项正在考虑的功能,但目前还没有预计到达时间。
希望得到帮助!
使用测试面板的当前响应示例:
{
"query": "incident 2",
"prediction": {
"normalizedQuery": "incident 2",
"topIntent": "INCIDENT_DETAILS",
"intents": {
"INCIDENT_DETAILS": {
"score": 0.972139537
}
},
"entities": {
"INCIDENT_NUMBER": [
"2"
],
"$instance": {
"INCIDENT_NUMBER": [
{
"type": "INCIDENT_NUMBER",
"text": "2",
"startIndex": 9,
"length": 1,
"score": 0.989707232,
"modelTypeId": 1,
"modelType": "Entity Extractor",
"recognitionSources": [
"model"
]
}
]
}
}
}
}
v3 之前的内容:
{
"query": "incident 2",
"topScoringIntent": {
"intent": "INCIDENT_DETAILS",
"score": 0.972139537
},
"entities": [
{
"entity": "2",
"type": "INCIDENT_NUMBER",
"startIndex": 9,
"endIndex": 9,
"score": 0.989707232
}
]
}
我是否错过了如何设置应该用于测试面板的 API 版本?显然,如果我们没有这样的选择,真的很不方便。
遗憾的是,无法在 luis.ai 站点内的 API 版本之间切换。这是一项正在考虑的功能,但目前还没有预计到达时间。
希望得到帮助!