snipsco / snips-nlu

Snips Python library to extract meaning from text
https://snips-nlu.readthedocs.io
Apache License 2.0
3.9k stars 512 forks source link

datetime not recognized #865

Closed flozi00 closed 4 years ago

flozi00 commented 4 years ago

`--- type: intent name: calendar_getevents slots:

utterances:

`DATASET_PATH = Path(file).parent / "definition.json" with DATASET_PATH.open(encoding="utf8") as f: sample_dataset = json.load(f)

nlu_engine = SnipsNLUEngine(config=CONFIG_EN)
nlu_engine.fit(sample_dataset)
nlu_engine.persist(lang)`

training process

the datetime get not extracted, only the intention is returned

{ "input": "whats on my calendar for tomorrow", "intent": { "intentName": "calendar_getevents", "probability": 0.8726704018107356 }, "slots": [] }

adrienball commented 4 years ago

Hi @flozi00 , As mentioned in the documentation, the YAML format used to describe a labelled utterance is:

find me a flight from [origin:city](Paris) to [destination:city](New York)

There is no space between ] and (. Best