DucklingEntityExtractor: How to extract the nearest time in the past?

I am trying to use DucklingEntityExtractor to extract times. Duckling’s default behavior is to return the nearest time in the future, when faced with multiple choices for entity extraction. But what if we ask the user a question like “What time did you arrive”? Is there a way to consider only times/dates in the past?

I’ve been trying to build a custom solution, but there are many edge cases that are making this more complicated than I expected. So, I’m hoping someone has an easier solution :slight_smile:

Welcome to my misery from 3 years ago :smiley:

They mentioned that you can override assumptions in Duckling with a custom dimension, maybe take a look at that.

2 Likes