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

[* DateTimeV2] Recognition of "[day] [calendar date] into multiple entities if day doesn't match date

Open nawanas opened this issue 4 years ago • 3 comments

Describe the solution you'd like Phrases of the format "[day] [calendar date]" are being recognized as a single entity, which is a bit weird when the calendar date portion does not reflect the day portion: "Monday 9/2/2021" (9/2/2021) or "tomorrow 7/30/2021" (tomorrow is not 7/30/2021 - though this does depend on when the inference is made).

nawanas avatar Aug 27 '21 14:08 nawanas

looking into this

aitelint avatar Nov 02 '21 04:11 aitelint

This is a bit tricky. Please let us know your analysis before changing the implementation. There is a common scenario where people make a mistake on the DOW and still want the entity recognized as one.

"tomorrow 7/30/2021" arguably is the same as "7/30/2021", because it is an anchored mention.

tellarin avatar Nov 02 '21 05:11 tellarin

ok, here I was planning to address only the first case "Monday 9/2/2021" following the same strategy already implemented for patterns like "Thursday the 25th" (which is extracted as a single entity only if "Thursday" and "the 25th" refer to the same day).

aitelint avatar Nov 02 '21 05:11 aitelint