Giter VIP home page Giter VIP logo

Comments (11)

issachan avatar issachan commented on September 1, 2024

I'm in a similar place. I have it all almost working, but for 3B, I cannot generate an utterances.txt.
what do I put in place of "INTENT_SCHEMA" in python -m ask.generate_training_data -i INTENT_SCHEMA -o E:...

JR What you should get (if I'm not mistaken), is the sample stuff you need to configure the skill. Right now you have all the code you need to make a function that'll work. This function can generate it's own Alexa instructions that will invoke the function for the sample. So, it comes with a short intent schema - "sample_intent_schema.json" and should generate an utterances file. Both of those would be pasted into your interaction model here, in the Alexa config tool:
https://developer.amazon.com/edw/home.html#/skill

However, like you, I cannot generate an Utterances.txt. Could you assist @anjishnu?

from ask-alexa-pykit.

anjishnu avatar anjishnu commented on September 1, 2024

you can put sample_intent_schema.json in place of INTENT_SCHEMA - that should work, I'll upload some sample utterances though.

from ask-alexa-pykit.

issachan avatar issachan commented on September 1, 2024

Thank you. I tried that. I am very new to Python so it is probably just something I did wrong, but when I put the sample json in for that parameter it appeared to run, but didn't generate the file. Thank you

from ask-alexa-pykit.

anjishnu avatar anjishnu commented on September 1, 2024

Just to clarify - the file should be generated in TRAINING_DATA_OUTPUT_LOCATION. It's just called utterances.txt by default.

from ask-alexa-pykit.

issachan avatar issachan commented on September 1, 2024

Yes, thanks. I'm not at my PC at the moment, but I wrote basically this:
python -m ask.generate_training_data -i intent_schema.json -o E:\Development\Apps\Ask-Alexa-PyKit
(I renamed the sample json).

And the instruction seemed to execute, but I didn't see any new file in the project folder.

from ask-alexa-pykit.

anjishnu avatar anjishnu commented on September 1, 2024

I haven't tested this out on a PC at all - mostly on linux/mac/lambda - so I'm hoping I have used os.path.join everywhere.

Can you please try: E:\Development\Apps\Ask-Alexa-PyKit\utterances.txt instead (i.e. put the name of the filename instead of the source directory).

I'll modify the code to work with both before the next release.

from ask-alexa-pykit.

issachan avatar issachan commented on September 1, 2024

I'll give that a shot. Yes, I had to mess with paths a bunch to keep Python working properly. It was a pain. Not a fan of trying to dev python in windows.
Thanks so much for your help.

from ask-alexa-pykit.

anjishnu avatar anjishnu commented on September 1, 2024

If you remember any specific examples of code that failed due to path issues do let me know.

from ask-alexa-pykit.

issachan avatar issachan commented on September 1, 2024

I was referring mostly to setting python and script paths in Windows. Your code when run via powershell works fine so far, other than this.

from ask-alexa-pykit.

anjishnu avatar anjishnu commented on September 1, 2024

Added utterances.txt and updated instructions - closing this.

from ask-alexa-pykit.

issachan avatar issachan commented on September 1, 2024

Thank you

from ask-alexa-pykit.

Related Issues (20)

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.