Query your custom model
After the deployment is added successfully, you can query the deployment to extract entities from your text based on the model you assigned to the deployment. You can query the deployment programmatically using the Prediction API or through the client libraries (Azure SDK).
Test deployed model
You can use Language Studio to submit the custom entity recognition task and visualize the results.
To test your deployed models from within the Language Studio:
Select Testing deployments from the left side menu.
Select the deployment you want to test. You can only test models that are assigned to deployments.
For multilingual projects, from the language dropdown, select the language of the text you are testing.
Select the deployment you want to query/test from the dropdown.
You can enter the text you want to submit to the request or upload a
.txt
file to use.Select Run the test from the top menu.
In the Result tab, you can see the extracted entities from your text and their types. You can also view the JSON response under the JSON tab.
Send an entity recognition request to your model
After the deployment job is completed successfully, select the deployment you want to use and from the top menu select Get prediction URL.
In the window that appears, under the Submit pivot, copy the sample request URL and body. Replace the placeholder values such as
YOUR_DOCUMENT_HERE
andYOUR_DOCUMENT_LANGUAGE_HERE
with the actual text and language you want to process.Submit the
POST
cURL request in your terminal or command prompt. You'll receive a 202 response with the API results if the request was successful.In the response header you receive extract
{JOB-ID}
fromoperation-location
, which has the format:{ENDPOINT}/language/analyze-text/jobs/<JOB-ID}>
Back to Language Studio; select Retrieve pivot from the same window you got the example request you got earlier and copy the sample request into a text editor.
Add your job ID after
/jobs/
to the URL, using the ID you extracted from the previous step.Submit the
GET
cURL request in your terminal or command prompt.