Get date adjectives from date slot

Hi all,

I am planning to use duckling to extract date/time entities from a Rasa Form slot.

For e.g.: If user input “5 months ago” then ducking it will convert it to a 5 months old day.

In this case output from ducking will be “Monday, 11 November 2019” but I will also like to extract the adjective ago from the user input.

I some other cases it can be older than 5 months, later than 5 months etc…

How can I extract the adjectives also?

Please share some advice.

Hm, I actually think there’s an issue with phrases like “older than 5 months” and “later than 5 months” - i’m not sure duckling will extract those at all.

As for extracting ago from 5 months ago - i’m not sure this is necessary, that should be possible to deduce from whether the date output by duckling is in the past or the future. You can check this in a custom action

1 Like

Ok. Thanks