snipsco / snips-nlu

Snips Python library to extract meaning from text
https://snips-nlu.readthedocs.io
Apache License 2.0
3.88k stars 515 forks source link

Datetime does not recognize 24h format #874

Open Corasonn opened 4 years ago

Corasonn commented 4 years ago

For the german language "Um 8 Uhr" (at 8 o'clock), snips always recognizes the datetime as pm. "Um 8 Uhr" should be recognized as am and "Um 20 Uhr" as pm.

ushmau5 commented 4 years ago

I think the behaviour is relative to what time it currently is. If if you run this at 6pm then the next '8 o clock' is 8pm. If you run it at 6am the next '8 o clock' is 8am.