Skip to main content

custom_models

Creates, updates, deletes, gets or lists a custom_models resource.

Overview

Namecustom_models
TypeResource
Idazure.ai_form_recognizer.custom_models

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
composedTrainResultsarrayTraining result for composed model.
keysobjectKeys extracted by the custom model.
modelInfoobjectBasic custom model information. All required parameters must be populated in order to send to Azure.
trainResultobjectCustom model training result. All required parameters must be populated in order to send to Azure.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_custom_modelselectmodel_id, endpointincludeKeysGet Custom Model. Get detailed information about a custom model.
list_custom_modelsselectendpointList Custom Models. Get information about all custom models.
delete_custom_modeldeletemodel_id, endpointDelete Custom Model. Mark model for deletion. Model artifacts will be permanently removed within a predetermined period.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringThe service endpoint host (no scheme). (default: )
model_idstringModel identifier.
includeKeysbooleanInclude list of extracted keys in model information. Default value is False.

SELECT examples

Get Custom Model. Get detailed information about a custom model.

SELECT
composedTrainResults,
keys,
modelInfo,
trainResult
FROM azure.ai_form_recognizer.custom_models
WHERE model_id = '{{ model_id }}' -- required
AND endpoint = '{{ endpoint }}' -- required
AND includeKeys = '{{ includeKeys }}'
;

DELETE examples

Delete Custom Model. Mark model for deletion. Model artifacts will be permanently removed within a predetermined period.

DELETE FROM azure.ai_form_recognizer.custom_models
WHERE model_id = '{{ model_id }}' --required
AND endpoint = '{{ endpoint }}' --required
;