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

Samples for slots #4

Open
ansman opened this issue Jul 22, 2018 · 3 comments
Open

Samples for slots #4

ansman opened this issue Jul 22, 2018 · 3 comments

Comments

@ansman
Copy link

ansman commented Jul 22, 2018

Some of our slots have samples defined, is there any way to generate samples for slots?

So for example like this:

{
  "name": "MyIntent",
  "slots": [{
    "name": "mySlot",
    "type": "mySlotType",
    "samples": [
      "My {mySlot}",
      "The {mySlot}",
      "{mySlot}"
    ]
  }]
}
@KayLerch
Copy link
Owner

Sorry, there's not.

@ansman
Copy link
Author

ansman commented Jul 22, 2018

I'm thinking that you'll probably want to define the samples in a separate file (or at least as a separate line).

Suggestions

MyIntent: I want to travel to {{AMAZON.US_CITY}}

MyIntent.AMAZON_US_CITY:
{{AMAZON_US_CITY}}
I want to go to {{AMAZON_US_CITY}}
To {{AMAZON_US_CITY}}

@KayLerch
Copy link
Owner

After having released the v2 of the generator I can now focus on supporting dialogs and slot samples. I've already defined the grammar syntax for it and is will be straight-forward like all the other parts of the grammar.

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

2 participants