Rasa duckling weird parsing

Hello, I’m currently trying to use rasa/duckling in my rasa pipeline and is parsing weirdly the date values.


If I input a string like this:

“Sunday to Monday”

It will parse like this :

from 2019-07-21T00:00:00.000 to 2019-07-23T00:00:00.000

meaning 2 days apart.

Similar things happen with:

“today to tomorrow”

from 2019-07-16T00:00:00.000 to 2019-07-18T00:00:00.000

or even:

“5 am to 6 am”

from 2019-07-17T05:00:00.000 to 2019-07-17T07:00:00.000

I wonder why would this be the case and what is the reason to always be a little ahead of the actual value.


I’m not sure, it’s weird, but Wit.ai’s interactive parser https://duckling.wit.ai/ says the same thing. I thought maybe with Sunday to monday that it was trying to include the entire days of sunday and monday, but you’re right, with hours that makes zero sense.

When I look here it seems that even with minutes it still goes ahead to include the next one:


If the returned result is the same with downloading duckling directly, you’d have to take up the issue on their repo.