Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR DatetimeV2] Year not recognized when month is spelled-out and "de" precedes the year #2771

Closed
srandal opened this issue Nov 17, 2021 · 1 comment
Labels

Comments

@srandal
Copy link

srandal commented Nov 17, 2021

Describe the bug
In a date expression where the month is spelled-out and "de" appears between the month and the year, the hypothesized timex excludes the year.

Note: French speakers tell us that this pattern is natural, although it's more common not to include "de".

To Reproduce
Steps to reproduce the behavior:

  1. Run SimpleConsole for fr-fr
  2. Type "Je suis né le 23 novembre de 1987"
  3. The hypothesized timex will be "XXXX-11-23"

Expected behavior
The timex should be "1987-11-23"

Sample input/output
Je suis né le 23 novembre de 1987

I found the following entities (3):
{
"Text": "23",
"Start": 14,
"End": 15,
"TypeName": "number",
"Resolution": {
"value": "23"
}
}
{
"Text": "1987",
"Start": 29,
"End": 32,
"TypeName": "number",
"Resolution": {
"value": "1987"
}
}
{
"Text": "23 novembre",
"Start": 14,
"End": 24,
"TypeName": "datetimeV2.date",
"Resolution": {
"values": [
{
"timex": "XXXX-11-23",
"type": "date",
"value": "2020-11-23"
},
{
"timex": "XXXX-11-23",
"type": "date",
"value": "2021-11-23"
}
]
}
}

Platform (please complete the following information):

  • Platform: .NET
  • Environment: console app
  • Version of package: 1.7.0
@tellarin tellarin added the bug label Dec 6, 2021
@tellarin
Copy link
Collaborator

tellarin commented Dec 6, 2021

@aitelint Can you take a look at this? Should be similar to a past fix.

aitelint pushed a commit to aitelint/Recognizers-Text that referenced this issue Dec 7, 2021
@tellarin tellarin closed this as completed Dec 7, 2021
tellarin pushed a commit that referenced this issue Dec 7, 2021
…nd "de" precedes the year (#2771) (#2793)

Co-authored-by: aitelint <Fabrizio.Sorba@telusinternational.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants