| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. |
| | | 3 | | |
| | | 4 | | namespace Azure.AI.TextAnalytics |
| | | 5 | | { |
| | | 6 | | /// <summary> |
| | | 7 | | /// Details regarding the specific substring in the document matching |
| | | 8 | | /// the linked entity, or well-known item, that the Text Analytics model |
| | | 9 | | /// identified. |
| | | 10 | | /// </summary> |
| | | 11 | | public readonly struct LinkedEntityMatch |
| | | 12 | | { |
| | | 13 | | internal LinkedEntityMatch(string text, double score) |
| | | 14 | | { |
| | 124 | 15 | | Text = text; |
| | 124 | 16 | | ConfidenceScore = score; |
| | 124 | 17 | | } |
| | | 18 | | |
| | | 19 | | /// <summary> |
| | | 20 | | /// Gets the entity text as it appears in the document. |
| | | 21 | | /// </summary> |
| | 12 | 22 | | public string Text { get; } |
| | | 23 | | |
| | | 24 | | /// <summary> |
| | | 25 | | /// Gets a score between 0 and 1, indicating the confidence that this |
| | | 26 | | /// substring matches the corresponding linked entity. |
| | | 27 | | /// </summary> |
| | 12 | 28 | | public double ConfidenceScore { get; } |
| | | 29 | | } |
| | | 30 | | } |