Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language Support #42

Closed
NatashaSvic opened this issue Aug 9, 2019 · 0 comments
Closed

Language Support #42

NatashaSvic opened this issue Aug 9, 2019 · 0 comments

Comments

@NatashaSvic
Copy link

NatashaSvic commented Aug 9, 2019

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!

@NatashaSvic NatashaSvic changed the title Language Support incongruous with original duckling demo Language Support Aug 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant