Skip to content

Conversation

@andrew-gradinari
Copy link
Contributor

Recognizers fails to pick up the year for dates in the format of "Month(text) Day(text) Year(digit)":

  • April first 20212023-04-01 / 2024-04-01
  • March one 20202023-03-01 / 2024-03-01

There is also a problem with the resolved values - PastResolution is in the future when it should be in the past relative to ReferenceDateTime:

{
  "Input": "Oct twenty three",
  "Context": {
    "ReferenceDateTime": "2023-04-25T00:00:00"
  },
  "Results": [
    {
      "Text": "Oct twenty three",
      "Type": "date",
      "Value": {
        "Timex": "XXXX-10-23",
        "PastResolution": {
          "date": "2024-10-23"
        },
        "FutureResolution": {
          "date": "2023-10-23"
        }
      },
      "Start": 0,
      "Length": 16
    }
  ]
}

tellarin and others added 23 commits March 25, 2022 16:35
…n for Units (microsoft#2877) (microsoft#2879)

- Support informal degrees in PT and ES (microsoft#2877);

- Fix issue in generation of Spanish unit resources;

- Re-generate all resources across platforms.
…icrosoft#2878)

* Enabling SpanishMexican culture in Number/Unit/DateTimveV2

* Update Spanish number specs according to review

Co-authored-by: Colm Dillon <cdillon@ip-192-168-0-108.ec2.internal>
* Add Portuguese DateTime support in Python

* Update Specs with Python changes

* Fix Number import issue

* Update specs according to build and review

* Remove empty NotSupported fields from specs
microsoft#2863) (microsoft#2892)

Co-authored-by: aitelint <Fabrizio.Sorba@telusinternational.com>
…eTimeRanges (microsoft#2894)

* Workaround for TimexProperty.ToString() to not crash on DateTimeRanges 

* Add TODO for fixing the TimexProperty date range representation properly according to review
Fetch microsoft/Recognizers-Text upstream changes
[NLU-2858] Fetch upstream changes from microsoft:master -> purecloudlabs:master
Merge MS Recognizers into master
Bringing Pureclould Labs master up to-date with Microsoft master
Update fork with MS recognizers latest
@andrew-gradinari andrew-gradinari changed the title [EN DateTimeV2] Fix for case like 'March one 2020' [Python][EN DateTimeV2] Fix for case like 'March one 2020' Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants