Recognizers-Text icon indicating copy to clipboard operation
Recognizers-Text copied to clipboard

[Python | EN DateTimeV2] "end" Mod bad resolution (should be "before-end")

Open igalma opened this issue 3 years ago • 4 comments

"end" mod is not being resolved correctly in the following case: input text: "will look at the end of 2022"

Current behavior "Mod": "end" "type": "daterange" "start": "2022-06-16" "end": "2022-07-01"

Expected behavior 'Mod': 'before-end' 'type': 'daterange' 'sourceEntity': 'datetimerange' 'end': '2023-01-01'

igalma avatar Jun 19 '22 10:06 igalma

Can you please provide the full output for the current case and the expected case? Can you please identify the difference between this package and the .NET package @fxs130430

hazemelh avatar Jun 20 '22 17:06 hazemelh

This is not really a bug. It's a case of wanting to customize a resolution. We can't change the current resolution as it's a breaking change.

tellarin avatar Jun 21 '22 03:06 tellarin

I mean, the behaviour described in Python and the specific month range is incorrect there. Correct in .NET. That should be consistent in Python. But changing the resolution to the suggested one would be out of scope for a fix.

tellarin avatar Jun 22 '22 04:06 tellarin

@tellarin I understand. Feel free to edit the title.

igalma avatar Jun 22 '22 16:06 igalma