KayLerch / alexa-utterance-generator

Use this tool if you'd like to generate hundreds and thousands of variant utterances for your Alexa skills.
Apache License 2.0
83 stars 11 forks source link

Samples for slots #4

Open ansman opened 6 years ago

ansman commented 6 years ago

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 commented 6 years ago

Sorry, there's not.

ansman commented 6 years ago

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 commented 6 years ago

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.