-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
DocumentKeyValuePair.cs
46 lines (39 loc) · 1.88 KB
/
DocumentKeyValuePair.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.AI.FormRecognizer.DocumentAnalysis
{
/// <summary> An object representing a form field with distinct field label (key) and field value (may be empty). </summary>
public partial class DocumentKeyValuePair
{
/// <summary> Initializes a new instance of DocumentKeyValuePair. </summary>
/// <param name="key"> Field label of the key-value pair. </param>
/// <param name="confidence"> Confidence of correctly extracting the key-value pair. </param>
/// <exception cref="ArgumentNullException"> <paramref name="key"/> is null. </exception>
internal DocumentKeyValuePair(DocumentKeyValueElement key, float confidence)
{
Argument.AssertNotNull(key, nameof(key));
Key = key;
Confidence = confidence;
}
/// <summary> Initializes a new instance of DocumentKeyValuePair. </summary>
/// <param name="key"> Field label of the key-value pair. </param>
/// <param name="value"> Field value of the key-value pair. </param>
/// <param name="confidence"> Confidence of correctly extracting the key-value pair. </param>
internal DocumentKeyValuePair(DocumentKeyValueElement key, DocumentKeyValueElement value, float confidence)
{
Key = key;
Value = value;
Confidence = confidence;
}
/// <summary> Field label of the key-value pair. </summary>
public DocumentKeyValueElement Key { get; }
/// <summary> Field value of the key-value pair. </summary>
public DocumentKeyValueElement Value { get; }
/// <summary> Confidence of correctly extracting the key-value pair. </summary>
public float Confidence { get; }
}
}