rustling-ontology
rustling-ontology copied to clipboard
2K interpreted as datetime
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
This issue was initially raised here: https://github.com/snipsco/snips-nlu/issues/676
~~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