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

utterances not keeping braces around slot names #41

Closed
brandtdaniels opened this issue Dec 31, 2015 · 3 comments
Closed

utterances not keeping braces around slot names #41

brandtdaniels opened this issue Dec 31, 2015 · 3 comments

Comments

@brandtdaniels
Copy link

utterances not keeping braces around slot names when generating content.
Also slots are optional, please remove if empty.

From this:

    {
        "slots": {"date": "AMAZON.DATE", "city": "AMAZON.US_CITY"},
        "utterances": [
            "what movies are playing {on |} {date}",
            "what movies are playing {in|near|around} {city}",
            "what movies are playing {in|near|around} {city} {on |} {date}",
            "what movies are playing {on |} {date} {in|near|around} {city}"
        ]
    }

Generates this:

{
   "intents": [
      {
         "intent": "AMAZON.HelpIntent",
         "slots": []
      },
      {
         "intent": "AMAZON.StopIntent",
         "slots": []
      },
      {
         "intent": "AMAZON.CancelIntent",
         "slots": []
      },
      {
         "intent": "GetMoviesIntent",
         "slots": [
            {
               "name": "date",
               "type": "AMAZON.DATE"
            },
            {
               "name": "city",
               "type": "AMAZON.US_CITY"
            }
         ]
      }
   ]
}

GetMoviesIntent what movies are playing on date
GetMoviesIntent what movies are playing date
GetMoviesIntent what movies are playing in city
GetMoviesIntent what movies are playing near city
GetMoviesIntent what movies are playing around city
GetMoviesIntent what movies are playing in city on date
GetMoviesIntent what movies are playing near city on date
GetMoviesIntent what movies are playing around city on date
GetMoviesIntent what movies are playing in city date
GetMoviesIntent what movies are playing near city date
GetMoviesIntent what movies are playing around city date
GetMoviesIntent what movies are playing on date in city
GetMoviesIntent what movies are playing date in city
GetMoviesIntent what movies are playing on date near city
GetMoviesIntent what movies are playing date near city
GetMoviesIntent what movies are playing on date around city
GetMoviesIntent what movies are playing date around city
@jpriebe
Copy link
Contributor

jpriebe commented Jan 4, 2016

This is really an issue for alexa-utterances, not alexa-app.

And Brandt opened it there, too: alexa-js/alexa-utterances#6

@dblock
Copy link
Collaborator

dblock commented Dec 16, 2016

Maybe someone ^^^ can dig this up so we can close this issue? What do we do here?

@dblock
Copy link
Collaborator

dblock commented Feb 5, 2017

Lets close this in favor of alexa-js/alexa-utterances#6.

@dblock dblock closed this as completed Feb 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants