python-duckling icon indicating copy to clipboard operation
python-duckling copied to clipboard

basic numbers in German Language not working

Open DhruvMevada opened this issue 5 years ago • 0 comments

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

DhruvMevada avatar Jan 20 '20 13:01 DhruvMevada