| | 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 | |
|
| | 10 | | namespace Azure.AI.TextAnalytics.Models |
| | 11 | | { |
| | 12 | | /// <summary> The Match. </summary> |
| | 13 | | internal partial class Match |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of Match. </summary> |
| | 16 | | /// <param name="confidenceScore"> If a well-known item is recognized, a decimal number denoting the confidence |
| | 17 | | /// <param name="text"> Entity text as appears in the request. </param> |
| | 18 | | /// <param name="offset"> Start position for the entity match text. </param> |
| | 19 | | /// <param name="length"> Length for the entity match text. </param> |
| | 20 | | /// <exception cref="ArgumentNullException"> <paramref name="text"/> is null. </exception> |
| 0 | 21 | | internal Match(double confidenceScore, string text, int offset, int length) |
| | 22 | | { |
| 0 | 23 | | if (text == null) |
| | 24 | | { |
| 0 | 25 | | throw new ArgumentNullException(nameof(text)); |
| | 26 | | } |
| | 27 | |
|
| 0 | 28 | | ConfidenceScore = confidenceScore; |
| 0 | 29 | | Text = text; |
| 0 | 30 | | Offset = offset; |
| 0 | 31 | | Length = length; |
| 0 | 32 | | } |
| | 33 | |
|
| | 34 | | /// <summary> If a well-known item is recognized, a decimal number denoting the confidence level between 0 and 1 |
| 0 | 35 | | public double ConfidenceScore { get; } |
| | 36 | | /// <summary> Entity text as appears in the request. </summary> |
| 0 | 37 | | public string Text { get; } |
| | 38 | | /// <summary> Start position for the entity match text. </summary> |
| 0 | 39 | | public int Offset { get; } |
| | 40 | | /// <summary> Length for the entity match text. </summary> |
| 0 | 41 | | public int Length { get; } |
| | 42 | | } |
| | 43 | | } |