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

basic numbers in German Language not working #43

Open
DhruvMevada opened this issue Jan 20, 2020 · 0 comments
Open

basic numbers in German Language not working #43

DhruvMevada opened this issue Jan 20, 2020 · 0 comments

Comments

@DhruvMevada
Copy link

python 3.6
duckling 1.18

German
text = "dritte Nachricht"
English
text = "third message"

from duckling import DucklingWrapper
from duckling import language as lang
nlp = DucklingWrapper()
nlp.language = lang.Language.GERMAN

nlp.parse("dritte Nachricht")

returns []

English
while I checked the same text in English then it's working fine.

from duckling import DucklingWrapper
from duckling import language as lang
nlp = DucklingWrapper()
nlp.language = lang.Language.ENGLISH
nlp.parse("third message")

returns

[{'dim': 'ordinal',
  'text': 'third',
  'start': 0,
  'end': 5,
  'value': {'value': 3}},
 {'dim': 'time',
  'text': 'third',
  'start': 0,
  'end': 5,
  'value': {'value': '2020-02-03T00:00:00.000+05:30',
   'grain': 'day',
   'others': [{'grain': 'day', 'value': '2020-02-03T00:00:00.000+05:30'},
    {'grain': 'day', 'value': '2020-03-03T00:00:00.000+05:30'},
    {'grain': 'day', 'value': '2020-04-03T00:00:00.000+05:30'}]}}]
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