测试面板以v3 API格式返回json,而v2更可取

使用测试面板的电流响应示例:

{
  "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","endIndex": 9,"score": 0.989707232
    }
  ]
}

我错过了如何设置测试面板应使用哪个API版本的信息吗?显然,如果我们没有这样的选择,那确实很不方便。

a4702860 回答:测试面板以v3 API格式返回json,而v2更可取

很遗憾,在luis.ai网站中无法在API版本之间切换。正在考虑使用此功能,但是目前没有ETA。

希望有帮助!

本文链接:https://www.f2er.com/3102904.html

大家都在问