Class TrainingOptions
java.lang.Object
com.azure.ai.formrecognizer.training.models.TrainingOptions
Options that may be passed when using training APIs on Form Training client.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the optional model name defined by the user.Get the duration between each poll for the operation status.Get the filter to apply to the documents in the source path for training.setModelName(String modelName) Set the optional model name defined by the user.setPollInterval(Duration pollInterval) Set the duration between each poll for the operation status.setTrainingFileFilter(TrainingFileFilter trainingFileFilter) Set the filter to apply to the documents in the source path for training.
-
Constructor Details
-
TrainingOptions
public TrainingOptions()
-
-
Method Details
-
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.
-
setTrainingFileFilter
Set the filter to apply to the documents in the source path for training.- Parameters:
trainingFileFilter- thefilterto apply to the documents in the source path for training.- Returns:
- the updated
TrainingOptionsvalue.
-
getPollInterval
Get the duration between each poll for the operation status. If none is specified, a default of 5 seconds is used.- Returns:
- the
pollIntervalvalue.
-
setPollInterval
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
TrainingOptionsvalue.
-
getModelName
Get the optional model name defined by the user.- Returns:
- the modelName.
-
setModelName
Set the optional model name defined by the user.- Parameters:
modelName- the user defined model name to set.- Returns:
- the updated
TrainingOptionsvalue.
-