用LUIS建立区域文化

时间:2017-10-11 14:10:22

标签: botframework luis

将日期传递给LUIS的格式为" 3/1 2017"返回已解析为2013年3月1日的builtin.datetimev2实体。

第一个月是日期字符串的美国惯例,但不在我的语言环境中,此字符串通常代表2017年1月1日。

以下是JSON响应:

    {
  "entity": "23/12/17",
  "type": "builtin.datetimeV2.date",
  "startIndex": 70,
  "endIndex": 77,
  "resolution": {
    "values": [
      {
        "timex": "2017-12-23",
        "type": "date",
        "value": "2017-12-23"
      }
    ]
  }
},
{
  "entity": "3/1/18",
  "type": "builtin.datetimeV2.date",
  "startIndex": 83,
  "endIndex": 88,
  "resolution": {
    "values": [
      {
        "timex": "2018-03-01",
        "type": "date",
        "value": "2018-03-01"
      }
    ]
  }
},

1 个答案:

答案 0 :(得分:2)

builtin.datetimeV2.date目前始终是en-us,并且没有办法改变它。

您可以在此处投票的UserVoice请求:https://cognitive.uservoice.com/forums/551524-luis/suggestions/31549864-luis-add-support-for-english-regional-formats

很抱歉,这不是您正在寻找的答案。

相关问题