Skip to content

Date ambiguities during search_dates #689

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

Open
holtzhau opened this issue May 18, 2020 · 1 comment
Open

Date ambiguities during search_dates #689

holtzhau opened this issue May 18, 2020 · 1 comment

Comments

@holtzhau
Copy link

holtzhau commented May 18, 2020

For the following

from dateparser.search import search_dates
result_date = search_dates("Statement: 4 February 2019 10 4")
print(result_date)     

We get the result:
[('4 February', datetime.datetime(2020, 2, 4, 0, 0)), ('2019 10', datetime.datetime(2019, 10, 4, 0, 0))]

The last numbers are not dates, but are seen as such. That is okay because "2019 10 4" could make a valid date. But then "4 February 2019" should still be identified correctly.

@Gallaecio
Copy link
Member

I wonder how 10 4 should be interpreted. Is it the time? Or completely unrelated numbers?

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

No branches or pull requests

3 participants