测试面板以v3 API格式返回json,最好使用v2

问题描述 投票:1回答:1

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

{
  "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
1个回答
0
投票

不幸的是,在luis.ai网站中无法在API版本之间切换。正在考虑此功能,但目前尚无ETA。

希望帮助!

© www.soinside.com 2019 - 2024. All rights reserved.