Comments (11)
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.
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.
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.
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.
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.
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.
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.
If you remember any specific examples of code that failed due to path issues do let me know.
from ask-alexa-pykit.
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.
Added utterances.txt and updated instructions - closing this.
from ask-alexa-pykit.
Thank you
from ask-alexa-pykit.
Related Issues (20)
- Some errors on Readme.md and script HOT 2
- Cannot store new session attributes. HOT 4
- sessionAttributes bug
- Unit test suite
- README.md - Step 3 - No module named ask.generate_training_data HOT 1
- Needs better documentation HOT 1
- Install with --target fails HOT 3
- Failure to import IntentSchema HOT 1
- Simplify test suite.
- Dialogue Support HOT 3
- Better Custom Slot Support
- can this be used with chalice? HOT 3
- Issues deploying the sample app Basic on AWS HOT 3
- VoiceHandler error when deploying to Lambda HOT 4
- Request Object should validate applicationId HOT 3
- git checkout HOT 1
- Support dialog 'context' HOT 3
- How to elicit slot HOT 3
- Where is the 0.5.6 branch? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ask-alexa-pykit.