Azure-Samples / cognitive-services-language-understanding

Samples for the Language Understanding Intelligent Service (LUIS)
MIT License
85 stars 139 forks source link

Incorrect JSON Response #50

Closed shubhambits closed 2 years ago

shubhambits commented 2 years ago

Please provide us with the following information:

We are extracting datetimev2 entities via LUIS api using prebuilt model. In the json response, we are not able to deserialiize it due to additional values being returned. For eg: "10D" is added without the correct format of the json response body.

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Submitted line - to extract datetimev2 entities Mannauðslausnir - RMKT,$63.87,From Feb 28, 2021, 12:00 AM to Mar 21, 2021, 2:15 PM,2021 - Mannauðslausnir - RMKT - RMKT - 10D,6,858 Impressions,$63.87,2020 - AutoBoost - Post Engagement,$155.13,From Feb 28, 2021, 12:00 AM to Mar 21, 2021, 2:15 PM,2020 - AutoBoost - Post Engagement - IS,4,095 Impressions,$12.76,2020 - AutoBoost - Post Engagement - IS,8,270 Impressions,$24.13,2020 - AutoBoost - Post Engagement - IS,8,008 Impressions,$21.98,2020 - AutoBoost - Post Engagement - IS,6,277 Impressions

The json response for datetimev2 we got [{ 'type': 'datetimerange', 'values': [{ 'timex': '(2021-02-28T00:00,2021-03-21T14:15,PT518H)', 'resolution': [{ 'start': '2021-02-28 00:00:00', 'end': '2021-03-21 14:15:00' }] }] }, '10D', { 'type': 'datetimerange', 'values': [{ 'timex': '(2021-02-28T00:00,2021-03-21T14:15,PT518H)', 'resolution': [{ 'start': '2021-02-28 00:00:00', 'end': '2021-03-21 14:15:00' }] }] } ]

Any log messages given by the failure

Expected/desired behavior

JSON response with correct format.

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Microsoft.Azure.CognitiveServices.Language.LUIS.Runtime V3.0.0 nuget

Mention any other details that might be useful


Thanks! We'll be in touch soon.

shubhambits commented 2 years ago

Duplicate - https://github.com/microsoft/Recognizers-Text/issues/2691