【问题标题】:How can a get the position of an entity from a HTTP GET /message request in Wit.Ai如何从 Wit.Ai 中的 HTTP GET /message 请求中获取实体的位置
【发布时间】:2016-08-18 16:01:08
【问题描述】:

Wit.Ai HTTP API Documentation 提供了一个 POST /converse 请求的响应示例,该请求返回实体的“开始”和“结束”位置,如下所示:

{
    "type": "merge",
    "entities": {"location": [{"body": "Brussels",
                               "value": {"type": "value",
                                         "value": "Brussels",
                                         "suggested": true},
                               "start": 11,
                               "end": 19,
                               "entity": "location"}]},
    "confidence": 1
  }

还有一个已弃用的 GET https://api.wit.ai/messages/$MSG_ID 请求会返回相同的信息。

有没有办法配置 GET /message 请求以返回“开始”和“结束”属性?

谢谢

【问题讨论】:

    标签: wit.ai


    【解决方案1】:

    您可以在请求中使用 verbose=true 来获取实体的位置。

    【讨论】:

      猜你喜欢
      • 2013-11-01
      • 2018-12-15
      • 2021-06-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-09-14
      相关资源
      最近更新 更多