| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. |
| | | 3 | | |
| | | 4 | | // <auto-generated/> |
| | | 5 | | |
| | | 6 | | #nullable disable |
| | | 7 | | |
| | | 8 | | using System; |
| | | 9 | | using Azure.AI.FormRecognizer.Training; |
| | | 10 | | |
| | | 11 | | namespace Azure.AI.FormRecognizer.Models |
| | | 12 | | { |
| | | 13 | | /// <summary> Request parameter to train a new custom model. </summary> |
| | | 14 | | internal partial class TrainRequest |
| | | 15 | | { |
| | | 16 | | /// <summary> Initializes a new instance of TrainRequest. </summary> |
| | | 17 | | /// <param name="source"> Source path containing the training documents. </param> |
| | | 18 | | /// <exception cref="ArgumentNullException"> <paramref name="source"/> is null. </exception> |
| | 148 | 19 | | public TrainRequest(string source) |
| | | 20 | | { |
| | 148 | 21 | | if (source == null) |
| | | 22 | | { |
| | 0 | 23 | | throw new ArgumentNullException(nameof(source)); |
| | | 24 | | } |
| | | 25 | | |
| | 148 | 26 | | Source = source; |
| | 148 | 27 | | } |
| | | 28 | | |
| | | 29 | | /// <summary> Source path containing the training documents. </summary> |
| | 148 | 30 | | public string Source { get; } |
| | | 31 | | /// <summary> Filter to apply to the documents in the source path for training. </summary> |
| | 304 | 32 | | public TrainingFileFilter SourceFilter { get; set; } |
| | | 33 | | /// <summary> Use label file for training a model. </summary> |
| | 444 | 34 | | public bool? UseLabelFile { get; set; } |
| | | 35 | | } |
| | | 36 | | } |