| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. |
| | | 3 | | |
| | | 4 | | using Azure.Core; |
| | | 5 | | |
| | | 6 | | namespace Azure.AI.FormRecognizer.Training |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// Used by the <see cref="FormTrainingClient"/> to filter the documents by name in the |
| | | 10 | | /// source path provided for training. |
| | | 11 | | /// </summary> |
| | | 12 | | [CodeGenModel("TrainSourceFilter")] |
| | | 13 | | public partial class TrainingFileFilter |
| | | 14 | | { |
| | | 15 | | /// <summary> |
| | | 16 | | /// Initializes a new instance of the <see cref="TrainingFileFilter"/> class. |
| | | 17 | | /// </summary> |
| | 8 | 18 | | public TrainingFileFilter() |
| | | 19 | | { |
| | 8 | 20 | | } |
| | | 21 | | |
| | | 22 | | /// <summary> |
| | | 23 | | /// A case-sensitive prefix string to filter documents in the source path for training. For example, |
| | | 24 | | /// you may use the prefix to restrict subfolders for training. |
| | | 25 | | /// </summary> |
| | 32 | 26 | | public string Prefix { get; set; } = string.Empty; |
| | | 27 | | |
| | | 28 | | /// <summary> |
| | | 29 | | /// A flag to indicate whether subfolders within the set of prefix folders should be included |
| | | 30 | | /// when searching for content to be preprocessed. |
| | | 31 | | /// </summary> |
| | | 32 | | [CodeGenMember("IncludeSubFolders")] |
| | 24 | 33 | | public bool IncludeSubfolders { get; set; } = false; |
| | | 34 | | |
| | | 35 | | } |
| | | 36 | | } |