For the date extraction of dates in the form '11/2018' and '12/2018' where the year can change the following code of date extraction returns no extractions:
In the above snippet 'Date' is the field of the document. The above code works for all the other months from '1/2018' to '10/2018' but typically fails for November and December.
For the date extraction of dates in the form '11/2018' and '12/2018' where the year can change the following code of date extraction returns no extractions:
event_date = doc.select_segments(jsonpath='$.Date') extractions = doc.extract(extractor=self.date_extractor, extractable=event_date[0])
In the above snippet 'Date' is the field of the document. The above code works for all the other months from '1/2018' to '10/2018' but typically fails for November and December.