TrainingOptions Class
- java.
lang. Object - com.
azure. ai. formrecognizer. training. models. TrainingOptions
- com.
public final class TrainingOptions
Options that may be passed when using training APIs on Form Training client.
Constructor Summary
Constructor | Description |
---|---|
TrainingOptions() |
Create a |
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. |
Training |
getTrainingFileFilter()
Get the filter to apply to the documents in the source path for training. |
Training |
setModelName(String modelName)
Set the optional model name defined by the user. |
Training |
setPollInterval(Duration pollInterval)
Set the duration between each poll for the operation status. |
Training |
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:
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:
pollInterval
value.getTrainingFileFilter
public TrainingFileFilter getTrainingFileFilter()
Get the filter to apply to the documents in the source path for training.
Returns:
setModelName
public TrainingOptions setModelName(String modelName)
Set the optional model name defined by the user.
Parameters:
Returns:
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:
Returns:
TrainingOptions
value.setTrainingFileFilter
public TrainingOptions setTrainingFileFilter(TrainingFileFilter trainingFileFilter)
Set the filter to apply to the documents in the source path for training.
Parameters:
Returns:
TrainingOptions
value.Applies to
Azure SDK for Java