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
[German] Skill won't save #163
Comments
Here's one more wired thing. But perhaps you already know it because you mentioned the alphabetical order before. When I was testing some utterances combinations I first cut the existing ones from my developer account and saved them. |
I'd like to help. And I've already started trimming (and correcting) the german utterances. Currently I have a list of 721 entries by just taking out some stuff probably no one would ever say. Therefor I added some new ones. But unfortunately it doesn't save at the moment. |
Little feedback so far: I'll now again try to get forward with those slots I do have a lot of items for (movies, artists, songs and albums). |
So, also the albums seem to work pretty good now. Same "problem" as with movies if i eg I have an album in the sample that's pretty similar to the one asked it could fail. But I guess that one can do nothing about it as long as one doesn't have a db in the back as you mentioned earlier. I was almost done with testing the albums when I tried to play "Ich mag keine Klassik, aber das gefällt mir!". Alexa understood "öffne kodi und spiele das album ich mag keine klassik aber das gefällt mir" and the result was the answer to CurrentPlayItemTimeRemaining?! |
One thing I discovered by building new utterances: |
I still have no clue what's going on there with the utterances and slot vlaues. Yesterday I built a new own list of utterances and it would only save if I remove all WhatAlbums and the WhatNewMovies including a {genre} reference. |
I've done a lot of testing and searching on the internet but I don't get much further. Perhaps you can point me to the right direction :) I currently have these values for my slots: I used my own utterances but that shouldn't make a big difference because the problem seems to be the same. So far so good. I did this testing because I thought it could be that I somehow reach some limit and that I reach it faster if I have more utterances that refer to a slot. Perhaps Alexa then tries all possibilities or whatever. But then I found something that is really wired to me: So now I don't know what to test now. I thought I could perhaps find out something like if I take one utterance out that refers to a slot I can add 3 more items to the slots and if I take one out without reference I can only add one. But with this behavior it's impossible. Any ideas? |
Taking a clue from your testing, I tried removing all references to MOVIEGENRES in both the Intents and Utterances. Unfortunately, it still doesn't save :( Amazon really needs to provide a debug log rather than just, "Error: Failed building the interaction model." This is utterly frustrating. |
I've trimmed the comments in this Issue down to just those that are related to this particular problem to make it easier to read in the future. |
@mcl22, I was in the process of adding the ListenToLatestAlbum intent and encountered this problem with English. After I trimmed all of my slots down to 200 each, it saved again. Could you try trimming all of your slots down to 200 and see if it helps? If not, try 150, then 100.. make sure to do this to all of them each time. Let me know if there's a number that works. |
I already do know that 100 works as I had to use this with version 2.5. Nut I will try again. |
Start with 200 please and make sure to trim all of the slots to that number (unless they already have less than 200). |
Do you want me to just trim down the ones I have now 300 values in or should I also add values to the slots that only have less than 100 items like genres and addons? |
No, just trim any that are > 200 down to 200. |
First result: 200 works with my own utterances, not with the one you provide with the skill. Gonna try further. |
150 items work with your german utterances. |
Hmm. Probably could get it to work with 200 if we trimmed up the CurrentPlayItem* and WhatNew* utterances a bit. I did this recently for English and the same could probably be done for German. Could you do me a huge favor and.. do this? :) I suspect we really don't need 471 CurrentPlayItem* and 164 WhatNew* utterances. Do bear in mind though, Alexa seems to be a bit more strict about phrasing if a slot is referenced. So, for the WhatNew* utterances that include {Genre}, you might need a few extras there. |
Have a look at the English phrases for these to give you an idea of what needs to be done. |
I guess I know what you mean. And actually that was the reason for me to already create all new utterances because on the one hand the german ones do include some that no one would ever say and on the other hand I felt that some are missing. |
That's just the nature of developing (particularly large) Alexa skills. Until Amazon increases the ceiling on size/whatever, we just have to fight this. However, we're giving ourselves a bit more headroom by limiting slots to 150 items each. If possible, could you have a look at utterances.german.txt (rather than SampleUtterances.german.txt)? Ultimately, that's where we need to trim them down. If you can handle parsing that, it'd make my life a lot easier. But I can deal with it either way if you have trouble figuring it out. |
Actually that's the one I used fo rcreating my own utterances :) I'll trim it down and test it and then send it to you. But maybe only tomorrow because here in Germany it's about 9p.m. and I'm hungry :) |
I now modified the WhatNew* and CurrentPlay* utterances based on your utterances.german.txt: CurrentPlayItemInquiry (was/wer) (das ist/ist das) CurrentPlayItemTimeRemaining (wann/um wieviel Uhr) ((das/dieses) Video/(der/dieser) Film/(die/diese) (Serie/Episode/Folge)/(das/dieses) Lied) (endet/enden wird/aus sein wird/aus ist/zuende ist) WhatNewAlbums welches neue Album (wartet/(fertig/aufgenommen worden) ist) WhatNewMovies welcher (/neue) (/{Genre}) Film (wartet/(fertig/aufgenommen worden) ist) WhatNewShows welche (/neue) Serie (wartet/(fertig/aufgenommen worden) ist) This modified list with to 1233 utterances saves for me with up 150 items / slot. I again add that not all of my slots do have so many entries since I don't have any videoplaylists, only a few addons, some genres and a couple fo tv shows. I onyl changed the utterances in a more sensefull way. I say that because, as I already mentioned I'm creating my own one. And that differs a lot from yours. I don't want to blame anyone, but in my opinion the german utterances provided are in some cases, well .... :) Well, as said before, I don't want to blame anybody. I mean someone did the work and I appreciate that. But I also want to mention that a lot of utterances are not that perfect for the german version. I just wonder if there are so few german users or if they all tweak their utterances or just live with what they got :) If you are interested I can send you my own utterances once I'm finished with them. |
@mcl22, Unfortunately, the skill still does not save here for me. Are there any other variations you think could be removed? |
Ok new try: CurrentPlayItemTimeRemaining (wann/um wieviel Uhr) (das Video/der Film/die (Serie/Episode/Folge)/das Lied) (endet/enden wird/aus sein wird/aus ist/zuende ist) WhatNewAlbums welches neue Album (wartet/(fertig/aufgenommen worden) ist) WhatNewMovies welcher (/neue) (/{Genre}) Film (wartet/(fertig/aufgenommen worden) ist) WhatNewShows welche (/neue) Serie (wartet/(fertig/aufgenommen worden) ist) It's about 200 items less. Tell me if that's ok. |
I'm sorry to say, but it still does not save for me. I have 150 (max) items in the following slots:
The others have ~20 each or so. Does this line up with what you have in your copy? If not, I can give you some items to pad your slots if you need, just for testing while you're working on this. |
It works with 100 slot items in each. I'll need to test that the slots still go generic in the English skill.. if they do, we'll push forward like this. I think the German utterances probably still need more work, but we can deal with that after this. |
English slots are still generic at 100 items each. Changes are all merged into Kodi-Alexa 2.6.2. |
Getting the totally descriptive, "Error: Failed building the interaction model."
If I cut the AddonExecute and ListenTo* utterances down to one utterance each, it saves. I don't know if the problem is that we've hit a size cap.. or there's a collision that oddly gets through when there's just less to interpret..
If I cut the WhatNew* and CurrentPlay* utterances down to one each, I can add the utterances back in for AddonExecute and ListenToAlbum (but only that one). I guess this hints at size being the problem, but with Amazon's totally cryptic error message.. it's really hard to say.
To confuse things even more.. with the list in the state described above, it's smaller than the English utterances by quite a bit (even with all of the ListenTo* utterances intact), and we don't see this problem with English. So, I considered that maybe it was due to the number of slot references.. but even that doesn't make sense: we have 619 references to slots in the English utterances, vs only 315 for German.
Hopefully that's a starting point, but honestly it would be really helpful if a native speaker could provide some help with this one. It might involve just trimming the utterances some, and if that's the case, I wouldn't really know which ones are suitable to cut.
The text was updated successfully, but these errors were encountered: