The difference between LUIS and Conversational Language Understanding

This is part 3 of the post “Language Understanding (LUIS) will be moved to Conversational Language Understanding under Azure Cognitive Service

Part 2 is “How to migrate from LUIS to Conversational Language Understanding

After imported the LUIS app to CLU project, let’s have a look on the differences.

Prebuilt Domains
In LUIS, there is a menu called Prebuilt Domains. If we click on it, we can see some domains are already prebuilt for us to select. If I click on the Calendar, it will add a set of Intents and Entities automatically which they are all calendar related . But this seems to be gone (or not yet add into CLU, as CLU is still in preview).

Intents
In LUIS, we could add prebuilt domain Intents, it is actually allow us to add the individuate intents from the prebuilt domains.

But there is no such option in CLU (yet).

Entities
In LUIS, we could Add New Entity, Add Prebuilt Entity, Add Prebuilt Domain Entity.

In CLU, we only have Add New Entity and Add Prebuilt Entity. Again, don’t have the Prebuilt Domain one.

Train
In LUIS, we could Train the model by just clicking the Train button on the top.

In CLU, we need to click to Train Model menu. Then for the first time, i will need to add new training job. I could reuse the same training job next time. The training time takes much longer than in LUIS.

Test
In LUIS, I could start test right after trained without publish.

But in CLU, I cannot test before deploy.

 

Publish (LUIS) / Deploy (CLU)
In LUIS, we could do Publish after training. And then we could call to the URL by using JSON/C#. The Primary Key and Secondary Key will then be generated for your to access.

In CLU, we will need to click Deploy model menu, then add new deployment in the first time. We also need to select which model that is with this deployment. After deployed, we have to select the Deployment, and then click the “get prediction URL” in order to see the endpoint info and the key is already embedded into the sample request query. There is no more area to show about the Primary Key and Secondary Key.

CLU – Test after Deployed
In the earlier of time, we cannot run any test before any deployment. After deployed, we found that the model is not able to click and run test after deployed. It has better UI on testing, we could select which deployment you wanna do the test.

 

Feedback

Well, the new workflow for the Language Understanding is more align to the standard workflow for AI and Machine Learning.

“Train, Score, (Evaluate), Deploy, and Test”

in LUIS, actually we are having 2 tests, first one is within the LUIS (before deployment). This is not calling the actual endpoint. And then we need to do another “Stage” or “Production” endpoint access test again with code.

In CLU now, we are doing the ONE test, the included test model page actually is calling the endpoint with no code.

If Microsoft could add the “prebuilt domain” back to CLU before release, it will be exactly the same functionalities as LUIS and even I feel better (although more clicks on train, deployment, and test). The workflow for me to do in a project is straight from top menu item to bottom menu item one by one. And also, I could have more than one Train Model and many model deployments within same project. While it only allow to have 2 deployments (Only Stage and production in LUIS).

How to migrate from LUIS to Conversational Language Understanding

This is part 2 of the post “Language Understanding (LUIS) will be moved to Conversational Language Understanding under Azure Cognitive Service

After we have created the Azure Language Service, we could try to create new project under Conversational Language Understanding.

It actually looks similar to creating a new app in LUIS

After created the new CLU Project, we can see that the new UI is combining Intents and Entities into same page but in difference tab under Schema. And then the Train Model, Test Model, and Publish Model are all move from top menu to side menu.

Improve app performance, Prebuilt Domain, Review endpoint Utterances, Features, Patterns, Manager, Settings, Publish Settings, Azure Resources and Versions are gone in new UI. The new UI is more clean and simple now.

So, how do we migrate the LUIS app to Conversational Language Understanding project?

The answer is – very simple and straight forward. All you need to do is export your LUIS app to JSON. And then import into new CLU project from JSON.

But then I found an error message saying that I cannot import it.

Invalid project name, so I guess a dot in the project name is now allowed now in CLU. Then let’s rename the existing LUIS App name from “Clock.lu” into “Clockluis”, removing the dot. And then redo the export in LUIS and import in CLU again.

Well, this time the import could be completed. And let’s have a look on the result.

Done. The migration is completed.

We will look into the differences between them in next post.

 

 

Language Understanding (LUIS) will be moved to Conversational Language Understanding under Azure Cognitive Service

Recent I found out a new message when I am working on my personal Language Translator and working on Global AI Bootcamp 2022 @HongKong. The message is:

A newer version of Language Understanding capabilities are now available as part of Azure Cognitive Service for Language. For more information see Azure Cognitive Service for Language Documentation. For language understanding capabilities within the Language Service, see Conversational Language Understanding, Custom Named Entity Recognition, and Custom Classification.

Well, to me, that means LUIS is going to be retired. The first thing comes up in my mind is, What should I do to move my existing LUIS App? Then second is, if they are compatible? Then, Are there any differences?

Let’s have a look on how we could migrate from LUIS to Conversational Language Understanding (it is longer than LUIS, can I call it CLU?). And we could try to look at the differences between them.

First, we need to create a new Language Service. Login to Azure Portal, and then create new resource. Type “language” in search. The first 2 results are the new Language Service, then second one is the LUIS.

 

We click the create of the first one. the new Conversational Language Understanding (Preview) is pre-selected. There are another 2 optional features, Custom QnA and Custom Text Classification & Extraction (Preview).

 

Let’s accept the default selected features and click “continue to create your resource”. Then you will just do the same as creating other Azure service, select subscription, resource group, region, name, pricing tier.

(Interesting, why the header is “Create TextAnalytics”?)
Here you have to make sure that you must select the proper selections,

Region: West US 2 or West Europe
Pricing tier: S (You could only either Free F0 and S from the option)

The new Conversational Language Understanding is only available when your Azure Cognitive Service for Language is with S sku. Following the wizard and entering the other values to create the Azure Service.

After the service is created and deployed, you will see a new Language service in your resource group.

 

Click into it and then click Develop under Overview.

 

Then scroll down to the bottom and you will see the Language Studio.

 

Click it and will take you to the Language Studio – Preview. And then you scroll down to the middle, and you will see the Conversation Language Understanding.

 

Now you will be seeing the new UI to this new Conversational Language Understanding Projects page.

 

For the rest, let’s have a look on the other blog posts which I will write them in the coming days.
“How to migrate from LUIS to Conversational Language Understanding”
“The difference between LUIS and Conversational Language Understanding”

 

Global AI Bootcamp 2022 (Hong Kong) is over. I Love AI, I Love Code.

It is my pleasure to have this opportunity to be one of the speakers on this Global AI Bootcamp 2022 (Hong Kong). Thanks for everyone who participated in this Global AI Community event and make this event successful. Glad to see a lot of people curious and passionate about Artificial Intelligence. And I’m also looking forward to seeing you all again at forthcoming Hong Kong AI Community events.

For this event, I spent many nights to write up a windows app to call different Azure AI Services, i.e, Cognitive Service, Computer Vision, Custom Vision, LUIS, Video Analyzer, Face Service, Language Translator…etc

I also search a lot of photos on HKCEC, IFC, Opera House for the training and evaluate in Custom Vision. It is great that I can get the image detection accurately.

Here are some of the screen capture on my app.

Please also join our Hong Kong AI Community in Discord. Your ideas, experiences, challenges, or anything related to Artificial Intelligence are welcome to share in this community.

https://discord.com/invite/mu3HbUMfJF

 

Renew Your Microsoft Certification for free

Microsoft role-based and specialty certifications expire every year, unless renewed. You can renew a Microsoft certification by simply passing the online renewal assessment on Microsoft Learn. Certification renewal is designed to promote continuous learning and help you keep up with technology updates. Renewal content covers technology updates only, making it shorter and less time consuming. Renewal is free, and the process doesn’t involve taking an exam with Pearson VUE. Learning modules are available to help you prepare for renewal. You can renew any time at your convenience soon after the renewal window opens, approximately six months prior to certification expiration.

I know about this “Certification Renewal” for long time. I have a lot of questions in my mind which I don’t know the answers because I haven’t really experience it. Some questions like,

  1. how long does it take?
  2. how many times I could take?
  3. what happen if I fail?
  4. Is it very hard?
  5. Is it online test?
  6. Do I need to reserve a time slot like the general Pearson VUE exam?
    …etc

Few days ago, I received an email from Microsoft Certification like this,

And then it redirect me to Microsoft Learn portal and the page state that I still have 180 days before it is expired. I could take the online exam every day. After a fail result, I will need to wait 24 hours before I could take the second time.

In the first time, I failed. It then shows my score. And it also suggests me some Microsoft Learn links and ask to you learn from it. After spending some time to read all of them, I finally passed the exam. Yes, passed and the certificate is now extend for another year to 17th July, 2023.