Skip to content

basic numbers in German Language not working #43

Description

@DhruvMevada

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'}]}}]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions