Get id of all intent and utterances after import

2019-08-27 15:33发布

问题:

So have created two applications on Luis and I wanted to import second application into first application. So I did the following:

  1. Export second Application
  2. Import into first application
  3. Train first application
  4. Publish first application

Now I want to get id's of trained intent and utterances but I am not able to find any Luis API to do so. Without any id's, I am not to do delete and update intent or utterances programatically.

How can I get complete LUIS application details(intent,entity,utterances) including id's and other metadata after importing from another application?

回答1:

The LUIS programmatic APIs have two endpoints you can query to get intents and utterances. You can access the LUIS APIs by clicking here, locate 'LUIS Programmatic APIs v2.0', and follow the link. I don't want to post the actual link as it's a bit complex and likely to change/break.

Once on the page, find the API menu on the left. Then:

  • Expand 'model' and look for 'Get version intent list', and
  • Expand 'example utterances' and look for 'Review labeled examples'

These each, respectively, should provide you with the lists you are looking for. Simply provide the necessary credentials.

Hope of help!