Recognizers-Text
Recognizers-Text copied to clipboard
[* | DateTimeV2] Discrepancy in handling "around" modifier in .NET and Python
- In .NET in MergedDateTime, when a modifer is found the entity type is always modified to its corresponding range-type independently of the modifier (so for example "around 1pm", the type "time" changes to "timerange")
- In Python, only 'before', 'after' and 'since' modifiers modify the type (so for "around 1pm", the returned type remains "time")
To Reproduce Run the test case "I am feeling sick around 1pm". In .NET the parsed type is "timerange", while in Python it is "time".
Expected behavior The returned type should be consistent in the two platforms.