duckling icon indicating copy to clipboard operation
duckling copied to clipboard

Issue in capturing two date fields in a sentence

Open Srivishnu27feb opened this issue 3 years ago • 1 comments

Hi Team,

I am facing issue in extracting two date field using duckling extractor:

curl -XPOST http://.0.0.0.0:8000/parse --date 'locale=en_GB&text=Block dates from today to tomorrow'

The date for today is getting captured correctly as '2022-05-12' but tomorrow is captured as '2022-05-14' (t+1), and the same issue is happening when i try it out with actual dates instead of today or tomorrow (The second extracted entity is always dt+1). Please can you help me with the fix.

Srivishnu27feb avatar May 12 '22 11:05 Srivishnu27feb

duckling is correct because time intervals in duckling are always lower inclusive, upper exclusive.

chessai avatar May 12 '22 14:05 chessai