Understand Resources For Building A Conversational Language Understanding Model
About
You must construct a
Language resource in Azure before you can utilize the Language Understanding
service to create an NLP solution. This resource will be utilized for both
creating your model and handling client application prediction queries.
Build Your Model
Before employing a model
to generate a prediction, you must develop, train, and implement it for
features that need one. The Azure AI Language service will learn what to search
for from this construction and training.
In the Azure portal, you
must first build your Azure AI Language resource. Then:
- Search for Azure AI services.
- Find and select Language Service.
- Select Create under the Language Service.
- Fill out the necessary details, choosing the region closest to you geographically (for best performance) and giving it a unique name.
Once that resource has
been created, you will need a key and the endpoint. You can find that on the
left side under Keys and Endpoint of the resource overview page.
Use Language Studio
You may accomplish each
of these tasks with Language Studio for a more visual approach to developing,
training, and deploying your model. You have the option to build a
Conversational Language Understanding project on the main page. After the
project is formed, construct, train, and implement your model using the same
procedure as described previously.
Use REST API
Using the REST API is one
method for creating your model. Creating your project, importing data,
training, deploying, and using your model would be the standard procedure.
Because these actions are
completed asynchronously, you must send a request to the relevant URI for each
step, followed by another request to find out the job's progress.
For example, if you want
to deploy a model for a conversational language understanding project, you
would submit the deployment job, and then check on the deployment job status.
Authentication
For each call to your
Azure AI Language resource, you authenticate the request.
Request Deployment
Submit a POST request to
the following endpoint.
{ENDPOINT}/language/authoring/analyze-conversations/projects/{PROJECT-NAME}/deployments/{DEPLOYMENT-NAME}?api-version={API-VERSION}
Successfully submitting
your request will receive a 202 response, with a response header of operation-location.
This header will have a URL with which to request the status, formatted like
this:
{ENDPOINT}/language/authoring/analyze-conversations/projects/{PROJECT-NAME}/deployments/{DEPLOYMENT-NAME}/jobs/{JOB-ID}?api-version={API-VERSION}
Get Deployment Status
Now, submit a GET request
to the URL from the response header above. The values will already be filled
out based on the initial deployment request. The response body will give the
deployment status details. The status field will have the value of
succeeded when the deployment is complete.
Query Your Model
To query your model for a
prediction, you can use SDKs in C# or Python, or use the REST API.
Conclusion
We have successfully
learnt about building our conversational language understanding model.
Comments
Post a Comment