You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I pieces of text where there are often two months concatenated by an "and" and then a year.
Like: April and May 2019or June and July 2018
I could not really figure out how to get at least one date out of it by using search_dates and settings 'PREFER_DAY_OF_MONTH' only works if its 'Month Year' and not 'Month and Month Year'
The text was updated successfully, but these errors were encountered:
I'm also getting unwanted results from these sort of 'date combinations'.
My text includes June & August 1967, and this is returning the current June, and ignoring the August (and more importantly, the year).
It would be nice to recognise these sort of date combinations, but I'm not sure which date should be returned from parsing these strings.
@FBosler: Do you think 2019/4/1 or 2019/5/1 should be returned from your first example? Or a list of dates, which would change the parse return type and wouldn't necessarily be backwards-compatible.
I definitely think dateparser.search.search_dates should return both/all of these dates, using the year for all of them, but for dateparser.parse I don't know which one should be chosen. Maybe it should just be the last one, or maybe this could have a setting to determine which is returned.
If I remember correctly search_dates returns a list anyway. So at least to me it would be intuitive, if it were to return two dates according to the other settings like PREFER_DAY_OF_MONTH
I pieces of text where there are often two months concatenated by an "and" and then a year.
Like:
April and May 2019
orJune and July 2018
I could not really figure out how to get at least one date out of it by using search_dates and settings 'PREFER_DAY_OF_MONTH' only works if its 'Month Year' and not 'Month and Month Year'
The text was updated successfully, but these errors were encountered: