Delen via


CustomFormModel Class

  • java.lang.Object
    • com.azure.ai.formrecognizer.training.models.CustomFormModel

public final class CustomFormModel

The CustomFormModel

Constructor Summary

Constructor Description
CustomFormModel(String modelId, CustomFormModelStatus modelStatus, OffsetDateTime trainingStartedOn, OffsetDateTime trainingCompletedOn, List<CustomFormSubmodel> submodels, List<FormRecognizerError> modelError, List<TrainingDocumentInfo> trainingDocuments)

Constructs a CustomFormModel object.

Method Summary

Modifier and Type Method and Description
CustomFormModelProperties getCustomModelProperties()

Get model metadata properties.

List<FormRecognizerError> getModelError()

Get the errors returned during the training operation.

String getModelId()

Get the Model identifier.

String getModelName()

Get the user defined model display name.

CustomFormModelStatus getModelStatus()

Get the status of the model.

List<CustomFormSubmodel> getSubmodels()

Get the list of sub model that are part of this model, each of which can recognize and extract fields from a different type of form.

OffsetDateTime getTrainingCompletedOn()

Get the Date and time (UTC) when the model training was completed.

List<TrainingDocumentInfo> getTrainingDocuments()

Get the list of the documents used to train the model and any errors reported in each document.

OffsetDateTime getTrainingStartedOn()

Get the Date and time (UTC) when the training of the model was started.

Methods inherited from java.lang.Object

Constructor Details

CustomFormModel

public CustomFormModel(String modelId, CustomFormModelStatus modelStatus, OffsetDateTime trainingStartedOn, OffsetDateTime trainingCompletedOn, List submodels, List modelError, List trainingDocuments)

Constructs a CustomFormModel object.

Parameters:

modelId - Model identifier.
modelStatus - Status of the model.
trainingStartedOn - Date and time (UTC) when the training of model was started.
trainingCompletedOn - Date and time (UTC) when the model training was completed.
submodels - List of sub model that are part of this model, each of which can recognize and extract fields from a different type of form.
modelError - List of errors returned during the training operation.
trainingDocuments - List of the documents used to train the model.

Method Details

getCustomModelProperties

public CustomFormModelProperties getCustomModelProperties()

Get model metadata properties.

Returns:

the custom model metadata properties.

getModelError

public List getModelError()

Get the errors returned during the training operation.

Returns:

the unmodifiable list of model errors returned during the training operation.

getModelId

public String getModelId()

Get the Model identifier.

Returns:

the modelId value.

getModelName

public String getModelName()

Get the user defined model display name.

Returns:

the modelName value.

getModelStatus

public CustomFormModelStatus getModelStatus()

Get the status of the model.

Returns:

the modelStatus value.

getSubmodels

public List getSubmodels()

Get the list of sub model that are part of this model, each of which can recognize and extract fields from a different type of form.

Returns:

the unmodifiable list of submodels that are a part of this model.

getTrainingCompletedOn

public OffsetDateTime getTrainingCompletedOn()

Get the Date and time (UTC) when the model training was completed.

Returns:

the trainingCompletedOn value.

getTrainingDocuments

public List getTrainingDocuments()

Get the list of the documents used to train the model and any errors reported in each document.

Returns:

the unmodifiable list of documents used to train the model.

getTrainingStartedOn

public OffsetDateTime getTrainingStartedOn()

Get the Date and time (UTC) when the training of the model was started.

Returns:

the trainingStartedOn value.

Applies to