Delen via


TrainingOptions Class

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

public final class TrainingOptions

Options that may be passed when using training APIs on Form Training client.

Constructor Summary

Constructor Description
TrainingOptions()

Create a TrainingOptions object.

Method Summary

Modifier and Type Method and Description
String getModelName()

Get the optional model name defined by the user.

Duration getPollInterval()

Get the duration between each poll for the operation status.

TrainingFileFilter getTrainingFileFilter()

Get the filter to apply to the documents in the source path for training.

TrainingOptions setModelName(String modelName)

Set the optional model name defined by the user.

TrainingOptions setPollInterval(Duration pollInterval)

Set the duration between each poll for the operation status.

TrainingOptions setTrainingFileFilter(TrainingFileFilter trainingFileFilter)

Set the filter to apply to the documents in the source path for training.

Methods inherited from java.lang.Object

Constructor Details

TrainingOptions

public TrainingOptions()

Create a TrainingOptions object.

Method Details

getModelName

public String getModelName()

Get the optional model name defined by the user.

Returns:

the modelName.

getPollInterval

public Duration getPollInterval()

Get the duration between each poll for the operation status. If none is specified, a default of 5 seconds is used.

Returns:

the pollInterval value.

getTrainingFileFilter

public TrainingFileFilter getTrainingFileFilter()

Get the filter to apply to the documents in the source path for training.

Returns:

the filter to apply to the documents in the source path for training.

setModelName

public TrainingOptions setModelName(String modelName)

Set the optional model name defined by the user.

Parameters:

modelName - the user defined model name to set.

Returns:

the updated TrainingOptions value.

setPollInterval

public TrainingOptions setPollInterval(Duration pollInterval)

Set the duration between each poll for the operation status. If none is specified, a default of 5 seconds is used.

Parameters:

pollInterval - the duration to specify between each poll for the operation status.

Returns:

the updated TrainingOptions value.

setTrainingFileFilter

public TrainingOptions setTrainingFileFilter(TrainingFileFilter trainingFileFilter)

Set the filter to apply to the documents in the source path for training.

Parameters:

trainingFileFilter - the TrainingFileFilter to apply to the documents in the source path for training.

Returns:

the updated TrainingOptions value.

Applies to