question

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

Custom Commands with LUIS custom entities

Is it possible to use LUIS custom entities (for example import a .lu file) with the Custom Commands GUI? Or possible to export a "custom commands" built app and then add more advanced functionality outside of the GUI such as custom LUIS entities?

I ask because if working in Japanese, the prebuilt entities are very constraining but the Custom Commands GUI looks very useful to make apps quickly and easily.

azure-cognitive-servicesazure-language-understanding
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.

1 Answer

romungi-MSFT avatar image
1 Vote"
romungi-MSFT answered romungi-MSFT commented

@holyone2-8265 The custom commands GUI or speech studio allows you to export the application but you cannot add new utterances or intents from this GUI.
However, I have tried a workaround to login to luis.ai with the resource mapped to your custom commands application and the list of luis applications should display the app that was published from custom commands GUI.

In here, you can edit your intents or entities and then publish them. This ensures your custom commands application or GUI that is linked to this LUIS resource utilize the changed model or luis app and respond accordingly. For example:

If I added a random utterance in my cancel intent from luis.ai the custom commands application should be able to recognize this with a high score.
Utterance added from luis.ai:

142553-image.png


Custom commands GUI:

142551-image.png

Similarly I think your custom entities should also work. I found it is easier to test first from the luis.ai test screen and publish the app and then check the same scenario from your custom commands application. I hope this helps.



image.png (35.6 KiB)
image.png (74.5 KiB)
· 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.

Thanks, this sounds very much like what I want to achieve but struggling a little with the details. I have published a LUIS prediction resource with my LUIS model, and in the Custom Command GUI >> Settings >> LUIS Resources have added that prediction endpoint. However, in the Custom Commands console I am unclear how I would then get a hold of the Entities defined in my LUIS model - as it seems Custom Commands only lets us use prebuilt "parameters" and does not refer to the term Entitites.

In your screenshotted example, it seems you made a @CancelValues Entity, but how did you get access to that Entity in the custom commands GUI?

0 Votes 0 ·

@holyone2-8265 The entities are added in the LUIS portal luis.ai since the custom commands application is actually creating a LUIS app when you link a resource resource from custom commands GUI. I still think the custom commands app is not displaying all the custom entities in its response because the same app when we test from luis.ai test page or options the JSON response displays all the entities returned for a prediction.

0 Votes 0 ·