| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | namespace Azure.AI.FormRecognizer.Models |
| | 5 | | { |
| | 6 | | /// <summary> |
| | 7 | | /// Represents a word recognized from the input document. |
| | 8 | | /// </summary> |
| | 9 | | public class FormWord : FormElement |
| | 10 | | { |
| | 11 | | internal FormWord(TextWord textWord, int pageNumber) |
| 15908 | 12 | | : base(new BoundingBox(textWord.BoundingBox), pageNumber, textWord.Text) |
| | 13 | | { |
| 15908 | 14 | | Confidence = textWord.Confidence != null ? textWord.Confidence.Value : Constants.DefaultConfidenceValue; |
| 15908 | 15 | | } |
| | 16 | |
|
| | 17 | | /// <summary> |
| | 18 | | /// Measures the degree of certainty of the recognition result. Value is between [0.0, 1.0]. |
| | 19 | | /// </summary> |
| 19528 | 20 | | public float Confidence { get; } |
| | 21 | | } |
| | 22 | | } |