I'm using spaCy as NLP library to detect named entities. I want to extract dates and time reference fom the text automatically. For example, capture the date in this sentence: I will go to the show on 1/1/2020 and detect that 1/1/2020 is a DATE named entity.
But I also want to understand relative time phrases, for example I will go to the show tomorrow. tomorrow is detected as DATE named entity, but I don't know which time it refers - if today is 1/1/2020 than tomorrow is 1/2/2020. I want to get the 1/2/2020 directly from the named entity, even if it relative.
I tried to do that manually by created a dictionary, but the date named entities are very wide and I miss them with a static dictionary.
Is there any way to receive the actual time from a relative date named entity?