question

holyone2-8265 avatar image
0 Votes"
holyone2-8265 asked holyone2-8265 commented

Loading all intents from LUIS intent recognizer

I am using LUIS with speech input according to: https://github.com/Azure-Samples/cognitive-services-speech-sdk/blob/master/quickstart/python/intent-recognition/quickstart.py

But ran into two problems, would be great if anyone has any advice:
Is there a way to list what intents have been added? When I add all intents from the model (`intent_recognizer.add_all_intents(model)`) it seems no intents can be recognized. When I copy-paste the utterance into the LUIS GUI test pane, it works, but not when running via the quickstart script.
Is there any way to get the full LUIS API result returned? I ask because I want to extract the entities, not just the intent.

azure-speechazure-language-understanding
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

If I understand that would list all the Intents in the LUIS model, but it seems when one uses the speech SDK one needs to load the intents from the LUIS model into the local class IntenrRecognizer. Is there any way to confirm it has successfully loaded after calling

intent_recognizer.add_intents(intents)

or
```
intent_recognizer.add_all_intents(model);
````
?

I have a suspicion the reason that the intents are not working is that there is a silent failure when I call these functions, so would be useful to know if those commands have done anything to debug this issue.

0 Votes 0 ·

0 Answers