How to read yes/no values of Intent?

Dear everyone,

This is first time I an trying snips nlu, I am really curious how this nlu works.

I have Windows 10 environment with python 3.7 support. I want NLU to understand which intent has been triggered and the value it selected. Let me paste following lines of code:

# I_YesNo intent
---
type: intent
name: I_YesNo
slots:
  - name: YesNoAnswer
    entity: E_YesNo
utterances:
  - [YesNoAnswer] I am
  - [YesNoAnswer] I am not

# E_YesNo entity
---
type: entity
name: E_YesNo
automatically_extensible: false
values:
- [yes I am]
- [no I am not]

When I try to run following command
snips-nlu generate-dataset en datasets.yaml > datasets.json

I get following error message:

I just want to get the values between yes and no in the value key of slots key of output json. What I am doing wrong here? Need help

Thanks

Oops! I just have to put utterances in quotes, so I made it like:

# I_YesNo intent
---
type: intent
name: I_YesNo
slots:
  - name: YesNoAnswer
    entity: E_YesNo
utterances:
  - "[YesNoAnswer]"

# E_YesNo entity
---
type: entity
name: E_YesNo
automatically_extensible: false
values:
- ["yes", "yes I am"]
- ["no", "no I am not"]
1 Like