m0ngr31 / kanzi

Alexa skill for controlling Kodi
https://lexigr.am
MIT License
428 stars 149 forks source link

Ignoring alexa slot matches #284

Open sean-russell opened 4 years ago

sean-russell commented 4 years ago

Hi,

I was having a lot of issues with getting the system to play the movie that I wanted. It would often end up playing some song instead of the movie that I wanted.

I write a quick script to generate all of the slot values for my movie collection (less than 800) complete with synonyms for numbers and certain movies with long titles to allow only part to be used. E.g. I added a synonym for "The Lord of the Rings The Return of the King" so I could just say "the return of the king" instead.

The model matches what I want excellently and you can see from the input json generated it correctly matches the movie from the synonym that I have spoken, however they system instead of using the matched slot name uses the value (the actual words) instead of the fully matched title of the movie.

input.txt

output.txt

log.txt

Ideally, when there is a match found, would it not be better to use the actual title instead of the words that alexa head?

Thanks Sean