I have few strings like below :
'Thursday;60 days;Monday, days;the last two years;the six months;October 2017;March 2018;three days;Jan. 4;Last year;Dec. 21;'
expected result : October 2017
'January 7;30;39;24;46;1750;April 2017;April 30;February;'
expected result : April 2017
'Thursday;a day;another six days;the day;Tuesday;three days;mid-October;Wednesday;'
expected result : mid-October
I know the string is completely unstructured but can we have a python code to get the dates even from these ?
This is a part of a NER model where I am trying to extract the data entities.
I have tried a few methods but those were not even close to the result as string doesn't have a proper pattern