TrainingFileFilter Class

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

public final class TrainingFileFilter

The TrainingFileFilter model.

Constructor Summary

Constructor Description
TrainingFileFilter()

Create a TrainingFileFilter instance.

Method Summary

Modifier and Type Method and Description
String getPrefix()

Get the case-sensitive prefix string to filter documents in the source path for training.

Boolean isSubfoldersIncluded()

Get the flag to indicate if sub folders within the set of prefix folders will also need to be included when searching for content to be preprocessed.

TrainingFileFilter setPrefix(String prefix)

Set the case-sensitive prefix string to filter documents in the source path for training.

TrainingFileFilter setSubfoldersIncluded(boolean includeSubfolders)

Set the includeSubfolders flag to indicate if sub folders are also to be included when searching for content to be preprocessed.

Methods inherited from java.lang.Object

Constructor Details

TrainingFileFilter

public TrainingFileFilter()

Create a TrainingFileFilter instance.

Method Details

getPrefix

public String getPrefix()

Get the case-sensitive prefix string to filter documents in the source path for training.

Returns:

the case-sensitive prefix string to filter documents for training.

isSubfoldersIncluded

public Boolean isSubfoldersIncluded()

Get the flag to indicate if sub folders within the set of prefix folders will also need to be included when searching for content to be preprocessed. Not supported if training with labels.

Returns:

the includeSubfolders value.

setPrefix

public TrainingFileFilter setPrefix(String prefix)

Set the case-sensitive prefix string to filter documents in the source path for training.

Parameters:

prefix - the prefix value to set.

Returns:

the TrainingFileFilter object itself.

setSubfoldersIncluded

public TrainingFileFilter setSubfoldersIncluded(boolean includeSubfolders)

Set the includeSubfolders flag to indicate if sub folders are also to be included when searching for content to be preprocessed. Not supported if training with labels.

Parameters:

includeSubfolders - the includeSubfolders value to set.

Returns:

the TrainingFileFilter object itself.

Applies to