Input:
- Valid for ticketing and travelling Starting from Mar 27 2016 to Dec 31 2016
- Effective Period Tickets must be issued on before 18 FEB 16
- Effective Period Ticket must be issued on before 29 FEB 2016
- TRAVELING DATES NOW - FEB 10 2016 FEB 22 2016 - MAY 12 2016
- Ticketing Effective Period on before 31 Jan 2016
(Note: The input has been preprocessed to this stage by some Python codes so that it will be easier to process using some Python packages.)
Expected output:
- from 2016-03-27 to 2016-12-31
- on before 2016-02-18
- on before 2016-02-29
- now - 2016-02-10 2016-02-22 - 2016-05-12
- on before 2016-01-31
I have tried dateutil. However it can only extract one date, right? Even for this situation, extraction of both preposition and date is also a problem.
I also looked at dateparser and datefinder. It seems they both use dateutil.
Dates can be YYYY-MM-DD, DDMMYYYY, etc., as long as in the same format.
Output doesn't have to be identical to the above one, as long as it reflects accurate information.
Finally, thanks for your time and thoughts. I will also keep trying.