LUIS - 我可以定义发送到 API 的消息的时间戳吗?

LUIS - can I define the timestamp of the message being sent to the API?

我们的英语 LUIS 模型为相对时间提供了实体 builtin.datetimeV2 的正确值,例如:

"an hour ago"

有时甚至几天前的消息都会发送到 LUIS API。有没有办法在发送请求时指定此类消息的原始时间戳以从结果中获取正确的时间?

我看到目前的情况可以在客户端部分处理。如果我的程序检测到 builtin.datetimeV2 的值是相对的,它可以比较输入消息的 "original timestamp" 和 "actual time" 并使用差异来移动结果值。由于需要在客户端检测 "relative time",因此我认为此解决方案容易出错。


消息 "an hour ago" 的结果示例:

"entities": [
    {
      "entity": "an hour ago",
      "type": "builtin.datetimeV2.datetime",
      "startIndex": 48,
      "endIndex": 58,
      "resolution": {
        "values": [
          {
            "timex": "2018-04-06T13:33:15",
            "type": "datetime",
            "value": "2018-04-06 13:33:15"
          }
        ]
      }
    }

端点查询字符串采用 timezoneOffset 应该允许您更改时间。它不适用于您的特定情况,但它可能会起作用。