[Azure LUIS Connector] TimeEx in Date Structure needs to be of type text, not date
Question
azure-luis-connector
Service icon
Forge component by Félix Barros
Application Type
Service

Hi,

The LUIS datetimeV2 built in entity will process "2nd May" as:

"entities": [

    {

      "entity": "may 2nd",

      "type": "builtin.datetimeV2.date",

      "startIndex": 0,

      "endIndex": 6,

      "resolution": {

        "values": [

          {

            "timex": "XXXX-05-02",

            "type": "date",

            "value": "2021-05-02"

          },

          {

            "timex": "XXXX-05-02",

            "type": "date",

            "value": "2022-05-02"

          }

        ]

      }

    }

  ]

Note the "XXXX"'s. See https://docs.microsoft.com/en-us/azure/cognitive-services/luis/luis-reference-prebuilt-datetimev2

Because of this you need to change the datatype of the timex attribute in the LUISEndPointAPI\Date structure from "date" to "text". 

I fixed my local version but then broke it again when I updated to the latest forge version, hence the request.

Hope this makes sense.

Thanks

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.