rustling-ontology icon indicating copy to clipboard operation
rustling-ontology copied to clipboard

Wrong time-of-day in "last <date> <time-of-day interval>"

Open rosastern opened this issue 6 years ago • 0 comments
trafficstars

Initial issue reported: https://github.com/snipsco/next-release/issues/809

Parsing Error

"last wednesday between one thirty and three forty-five am" gives wrong resolution on the left side time-of-day

Version

platform v1.2, v1.3

Language

en - other languages may be impacted too

Parser input

last wednesday between one thirty and three forty-five am

Parser output

+----+------------+-------------+----------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ix | log(p)     | p           | text                                               | Output(OutputValue)                                                                                                                                                                                |
+====+============+=============+====================================================+====================================================================================================================================================================================================+
| 0  | -3.3397157 | 0.035447035 | last wednesday between two and three forty-five am | DatetimeInterval(DatetimeIntervalOutput { interval_kind: Between { start: 2019-10-09T00:00:00+02:00, end: 2019-10-09T03:45:00+02:00, precision: Exact, latent: false }, datetime_kind: Datetime }) |
+----+------------+-------------+----------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Parser expected output (Optional)

+----+------------+-------------+----------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ix | log(p)     | p           | text                                               | Output(OutputValue)                                                                                                                                                                                |
+====+============+=============+====================================================+====================================================================================================================================================================================================+
| 0  | -3.3397157 | 0.035447035 | last wednesday between two and three forty-five am | DatetimeInterval(DatetimeIntervalOutput { interval_kind: Between { start: 2019-10-09T01:30:00+02:00, end: 2019-10-09T03:45:00+02:00, precision: Exact, latent: false }, datetime_kind: Datetime }) |
+----+------------+-------------+----------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

rosastern avatar Oct 11 '19 06:10 rosastern