Git Product home page Git Product logo

alexa-utterances's People

Contributors

dblock avatar jpriebe avatar klaussner avatar maxwellpayne avatar mreinstein avatar techpeace avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alexa-utterances's Issues

Sample compression possible?

Hi,

I wanted to ask you if there is any way to basically compress the samples. Let's say I have three utterances as input:
"why is it happening tonight",
"where is it happening tonight",
"when is it happening tonight"

and as output I want to get an alexa alike utterance syntax that "compresses" my utterances:
"(why|where|when) is it happening tonight"
Is something like this possible to create using your library? I'd appreciate your feedback and help. Thank you!

Best regards,
Ana

Tabs after intent name causing issues pasting to Amazon

I have been writing out the output of the utterances to a file. From there I need to paste it into the developer console. The issue arose last night as my interaction model was not saved. I did a bit of research and it came down to a tab character between the intent and the utterance. Sure enough if I replace the tab with a space Amazon does not balk. I realize this is on Amazon a bit but ATM its a bit fragile. Any chance of changing the delimiter to a space vs. a tab?

Add code coverage?

LMK if you want coveralls for code coverage like in alexa-app and others, I'll contribute.

Is SearchQuery supported?

I need my Utterance to output something like

nearbyPOIHotel closest {Query} near my hotel

Query being of AMAZON.SearchQuery type. Is this possible?

Would you like to move this repo into the alexa-js organization?

Would you like to move this repo into the newly created alexa-js organization, https://github.com/alexa-js?

This would reduce bus factor as currently only @mreinstein can add contributors to this project. By moving org admins can at least add new people, currently that's @matt-kruse and myself.

If you do want to do this, because Github requires one be admin of both source and destination, transfer the repo to me (@dblock) and I'll immediately move it to the org.

request: all words, in any order

I'd like to be able to provide something like "turn {thing,on}" to receive both "turn thing on" and "turn on thing". Any thoughts on that? (i might even be able to do a PR on it, if i find some time in the near future, but would like some input on the syntax, if anyone knows of anything that would make more sense)

Need to ability to have nested groups for utterances

Nested groups are valuable when alternating pronouns or articles of speech in an utterance. For example:

(The best|(A|My) favorite) movie is {Movie}

should expand to:

The best movie is {Movie}
A favorite movie is {Movie}
My favorite movie is {Movie}

I'll work on creating a PR for this functionality.

alexa-utterances v2 thoughts

sorry for delay on this. There are several issues #2 #5 #6 that deal with changes related to Amazon Alexa's recent improved built-ins and custom slot types.

I've come to the conclusion that much of the functionality in this module is duplication of the new capabilities. There are the 2 bits that are still useful IMO:

  • Generate Multiple Versions of Static Text
  • Optional Words

Here are my thoughts on what might be done in 2.x:

  • drop the dictionary feature
  • drop the LITERAL slot type
  • rename NUMBER, DATE, TIME, and DURATION to the AMAZON.NUMBER, AMAZON.DATE, etc. equivalents
  • I like the parentheses format that @rickwargo proposed in his PR. Thinking about using parens instead of braces for the 2 remaining features (optional words and generate multiple versions)

I haven't done any of this yet, just talking about next steps. Open for feedback, ideas, etc.

Documentation around literals misleading

Amazon is deprecating the use of Literals in Alexa by Nov 30 2016. It was a little hard to read the README.md in the context of this, although I assume we can count on using the custom slot syntax in the future.

Great stuff!
Cheers

Optional custom slot

I know I can use {-|Fruit} to leave the {Fruit} custom slot unparsed.

But is there a way to combine that with the "Optional Words" syntax, {favorite |}, to render one version with the slot, and one without it?

For example, something like I like {-|Fruit|} ice cream which would return both I like {Fruit} ice cream and I like ice cream.

Utterance generation bug

@mreinstein There seems to be a bug in the server generation of utterance permutations. For example the following:

"utterances": ['{to|} set temperature to {64-80|number}']

generates utterances as follows:

setTempsIntent	to set temperature to {sixty four|number}
setTempsIntent	set temperature to {sixty five|number}
setTempsIntent	to set temperature to {sixty six|number}
setTempsIntent	set temperature to {sixty seven|number}
...

but what I believe should be generated is:

setTempsIntent	to set temperature to {sixty four|number}
setTempsIntent	set temperature to {sixty four|number}
setTempsIntent	to set temperature to {sixty five|number}
setTempsIntent	set temperature to {sixty five|number}
setTempsIntent	to set temperature to {sixty six|number}
setTempsIntent	set temperature to {sixty six|number}
setTempsIntent	to set temperature to {sixty seven|number}
setTempsIntent	set temperature to {sixty seven|number}
...

Add danger-js?

Add your +1 if you want danger-js as well, for now it can be as simple as nagging that the contributor hasn't updated CHANGELOG.

utterances not keeping braces around slot names

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

online demo

I made this online demo tool to help my people test the utterance generation. I thought you might like to see it because a lot of the other utterance expanders have an online demonstration.

Thanks for such a neat project!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.