rustling-ontology
rustling-ontology copied to clipboard
Resolve am/pm in elliptic left side of time-of-day interval
Initial issue reported: https://github.com/snipsco/next-release/issues/808
Parsing Error
The am/pm specifier from right side of time-of-day interval doesn't apply to elliptic left side
Version
platform v1.2
Language
en - other languages may be impacted too
Parser input
between 2 and 3pm
Parser output
+----+-----------+------------+--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ix | log(p) | p | text | Output(OutputValue) |
+====+===========+============+==========================+======================================================================================================================================================================================================+
| 0 | -1.146101 | 0.31787375 | between two and three pm | DatetimeInterval(DatetimeIntervalOutput { interval_kind: Between { start: 2019-10-11T02:00:00+02:00, end: 2019-10-11T15:00:00+02:00, precision: Exact, latent: false }, datetime_kind: TimePeriod }) |
+----+-----------+------------+--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Parser expected output (Optional)
+----+-----------+------------+--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ix | log(p) | p | text | Output(OutputValue) |
+====+===========+============+==========================+======================================================================================================================================================================================================+
| 0 | -1.146101 | 0.31787375 | between two and three pm | DatetimeInterval(DatetimeIntervalOutput { interval_kind: Between { start: 2019-10-11T14:00:00+02:00, end: 2019-10-11T15:00:00+02:00, precision: Exact, latent: false }, datetime_kind: TimePeriod }) |
+----+-----------+------------+--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+