Conversation Language Understanding Model (Part 3)

 




Train Your Classification Model

It requires recognized data to be trained, just like any other AI model. In order for the model to be tested, it must see examples of how to map data to a class. You have the option to allow the model to automatically divide your training data; by default, it will utilize 20% of the documents for blind testing and 80% of the documents for training. You can designate certain documents for testing if you want to use them to test your model.

Choose Data labeling for your project in Language Studio. All of your documents will be visible to you. After choosing each document to include in the testing set, click Testing the model's performance. Create a new training job after saving your amended labels.

Create Search Index

Creating a search index that will be enhanced by a custom text classification model doesn't require any special actions on your part. Once you have developed a function app, you will be changing the index, indexer, and custom skill.

Create an Azure Function App

For your function app, you can select the technologies and language of your choice. The application must be able to send JSON to the API for custom text classification. Next, handle the model's JSON answer. After that, the function sends a structured JSON message back to an AI Search custom skillset.

There are five things the function app needs to know-

  1. The text to be classified.
  2. The endpoint for your trained custom text classification deployed model.
  3. The primary key for the custom text classification project.
  4. The project name.
  5. The deployment name.

The first is passed from your custom skillset in AI Search to the function as input. The remaining four can be found in Language Studio.

The endpoint and deployment name is on the deploying a model pane and the project name as well as primary key are on the project settings pane.

Update Your Azure AI Search Solution

There are three changes in the Azure portal you need to make to enrich your search index-

  1. You need to add a field to your index to store the custom text classification enrichment.
  2. You need to add a custom skillset to call your function app with the text to classify.
  3. You need to map the response from the skillset into the index.

Conclusion

We have successfully learnt about the training of classification model.























Comments

Popular posts from this blog

Connect Data to Azure Sentinel Using Data Connectors

Information Protection Scanner: Resolve Issues with Information Protection Scanner Deployment

Azure AI Search plugin in Microsoft Security Copilot (Preview)