Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[snips-nlu][1.1.0 (0.61.1)] - 'ai.snips.nlu' panicked at 'no entry found for key' when multiple slots with the same name in an intent #94
snips-nlu seems to crash on some configuration with the following logs
Version: Snips Flow - 1.1.0 (0.61.1)
Platform: Seen on Linux, MacOS
How to reproduce:
Maybe this helps to reproduce:
Platform: Linux (4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l GNU/Linux) - Raspbian
macOS Snips 0.61.1
We found the issue.
Here's more information about it.
When does it happen
This bug affects only assistants with intents containing twice (or more) the same slot name in an utterance.
Where is the issue
The issue lies within the deterministic intent parser. It was already existing before but the recent changes make it more likely to happen.
There is two possible workaround to this issue:
Glad it works!
I could not fork your app on the console to check the content.
The implementation could be something like this: