Skip to content

[* DateTimeV2] Date range (without year) is processed as a single Date with Year #2850

@veonua

Description

@veonua

Describe the bug
the phrase of the Date period from
https://github.com/microsoft/Recognizers-Text/blob/master/Specs/DateTime/English/DatePeriodExtractor.json#L2133
"Input": "I'll be out November 19-20",

is gives a single date result of Nov 19th year 2020

To Reproduce

DateTimeRecognizer.RecognizeDateTime("I'll be out November 19-20", Culture.English);

image

Expected behavior

daterange [2022-11-19 .. 2022-11-20]

Sample input/output
As applicable, add examples of text input and json output to help explain the problem.

Platform (please complete the following information):

  • Platform: .NET
  • Environment: nuget package, LUIS
  • Version of package: 1.8.2 (broken) 1.2.9 (fine)

Additional context
I've tried to update my library, now my unit tests fail on this query

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions