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

[Python | EN DateTimeV2] "mid" Mod suggests wrong start and end dates

Open igalma opened this issue 5 years ago • 0 comments

When a "mid" Mod is being recognized I expected the range to be somewhere around the middle of the month. However, the start and end of the month are given.

input text: "feel free to check back in mid-feb"

Current behavior 'Mod': 'mid' 'type': 'daterange' 'start': '2021-02-01' 'end': '2021-03-01'

Expected behavior 'Mod': 'mid' 'type': 'daterange' 'start': '2021-02-10' 'end': '2021-02-17'

Another, but related, bug is that if you add spaces before and/or after the dash it won't extract the "mid" at all.

igalma avatar Dec 20 '20 13:12 igalma