You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thank you a lot for building this wrapper and make duckling more accessible to python developers. I tried the German module with the following information: "Ihre Tochter ist am 31.12.2009 geboren worden". It does not detect 31.12.2009 as a date. Then I tested the demo on https://duckling.wit.ai/ and here, wenn selecting the german module, it works fine. What could be the issue? Please find below the code:
from duckling import *
d = DucklingWrapper("de")
print(d.parse_time(u'Ihre Tochter ist am 31.12.2009 geboren worden'))
Hi!
First of all, thank you a lot for building this wrapper and make duckling more accessible to python developers. I tried the German module with the following information: "Ihre Tochter ist am 31.12.2009 geboren worden". It does not detect 31.12.2009 as a date. Then I tested the demo on https://duckling.wit.ai/ and here, wenn selecting the german module, it works fine. What could be the issue? Please find below the code:
from duckling import *
d = DucklingWrapper("de")
print(d.parse_time(u'Ihre Tochter ist am 31.12.2009 geboren worden'))
output;
[{'dim': 'time', 'text': '2009', 'start': 26, 'end': 30, 'value': {'value': '2009-01-01T00:00:00.000+01:00', 'grain': 'year', 'others': []}}, {'dim': 'time', 'text': '31', 'start': 20, 'end': 22, 'value': {'value': '2031-01-01T00:00:00.000+01:00', 'grain': 'year', 'others': [{'grain': 'year', 'value': '2031-01-01T00:00:00.000+01:00'}]}}, {'dim': 'time', 'text': '12', 'start': 23, 'end': 25, 'value': {'value': '2019-08-09T12:00:00.000+02:00', 'grain': 'hour', 'others': [{'grain': 'hour', 'value': '2019-08-09T12:00:00.000+02:00'}, {'grain': 'hour', 'value': '2019-08-10T00:00:00.000+02:00'}, {'grain': 'hour', 'value': '2019-08-10T12:00:00.000+02:00'}]}}]
I suspect there is something wrong with loading the German module, since it does not understand in general.
thanks a lot for the help in advance!
The text was updated successfully, but these errors were encountered: