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

list(lexnlp.extract.en.dates.get_dates("11/8/2020")) is giving [datetime.date(2020, 11, 8)] ,that means 8 november,but actual date is 11 august #45

Open
Paulamidas opened this issue Aug 27, 2020 · 1 comment

Comments

@Paulamidas
Copy link

please solve.
list(lexnlp.extract.en.dates.get_dates("11/8/2020")) is giving [datetime.date(2020, 11, 8)] ,that means 8 november,but actual date is 11 august

@afparsons
Copy link
Contributor

afparsons commented Aug 27, 2020

Thank you for filing this issue.

Currently, LexNLP's English language date extraction module uses an en-US-style locale configuration. This means that dates delimited by forward-slashes are understood to be written in middle-endian format, i.e. MM/DD/YYYY.

The German and Spanish language parsers default to little-endian date formatting, i.e. DD/MM/YYYY. These are respectively available under lexnlp.extract.de.dates and lexnlp.extract.es.dates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants