Duckling time internal not giving proper output

for the input phrase ‘book me a slot for pool on 24th sept 3 am to 4 am’, I got the output like this

'[{'entity': 'attraction_type', 'start': 19, 'end': 23, 'confidence_entity': 0.9656240940093994, 'value': 'Swimming pool', 'extractor': 'DIETClassifier', 'processors': ['EntitySynonymMapper']}, {'start': 24, 'end': 49, 'text': 'on 24th sept 3 am to 4 am', 'value': {'to': '2021-09-24T05:00:00.000-07:00', 'from': '2021-09-24T03:00:00.000-07:00'}, 'confidence': 1.0, 'additional_info': {'values': [{'to': {'value': '2021-09-24T05:00:00.000-07:00', 'grain': 'hour'}, 'from': {'value': '2021-09-24T03:00:00.000-07:00', 'grain': 'hour'}, 'type': 'interval'}, {'to': {'value': '2022-09-24T05:00:00.000-07:00', 'grain': 'hour'}, 'from': {'value': '2022-09-24T03:00:00.000-07:00', 'grain': 'hour'}, 'type': 'interval'}, {'to': {'value': '2023-09-24T05:00:00.000-07:00', 'grain': 'hour'}, 'from': {'value': '2023-09-24T03:00:00.000-07:00', 'grain': 'hour'}, 'type': 'interval'}], 'to': {'value': '2021-09-24T05:00:00.000-07:00', 'grain': 'hour'}, 'from': {'value': '2021-09-24T03:00:00.000-07:00', 'grain': 'hour'}, 'type': 'interval'}, 'entity': 'time', 'extractor': 'DucklingEntityExtractor'}]'

Why is duckling giving “to value” as 05:00, when i mentioned 4 am in the input phrase

1 Like

I have the same trouble.