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

2K interpreted as datetime

Open adrienball opened this issue 7 years ago • 2 comments

Parsing Error

Rustling should not interpret values like "2K" as datetime.

Version

0.17.5

Language

en

Parser input

cargo run -- --lang en parse "2K" -k Time

Parser output

Time(TimeOutput { moment: 2000-01-01T00:00:00+01:00, grain: Year, precision: Exact, latent: false })

Parser expected output (Optional)

Nothing

adrienball avatar Oct 16 '18 16:10 adrienball

This issue was initially raised here: https://github.com/snipsco/snips-nlu/issues/676

adrienball avatar Oct 16 '18 16:10 adrienball

~~This is fixed / not reproduced in current version (0.19.2)~~ "2K" as datetime is not the preferred resolution in the general case, but it is when restricting parsing to Datetime entity kind. Reopening to fix this behaviour

rosastern avatar Sep 27 '19 11:09 rosastern