< Summary

Class:Azure.AI.FormRecognizer.Models.FormWord
Assembly:Azure.AI.FormRecognizer
File(s):C:\Git\azure-sdk-for-net\sdk\formrecognizer\Azure.AI.FormRecognizer\src\FormWord.cs
Covered lines:4
Uncovered lines:0
Coverable lines:4
Total lines:22
Line coverage:100% (4 of 4)
Covered branches:2
Total branches:2
Branch coverage:100% (2 of 2)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%100%
get_Confidence()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\formrecognizer\Azure.AI.FormRecognizer\src\FormWord.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4namespace 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)
 1590812            : base(new BoundingBox(textWord.BoundingBox), pageNumber, textWord.Text)
 13        {
 1590814            Confidence = textWord.Confidence != null ? textWord.Confidence.Value : Constants.DefaultConfidenceValue;
 1590815        }
 16
 17        /// <summary>
 18        /// Measures the degree of certainty of the recognition result. Value is between [0.0, 1.0].
 19        /// </summary>
 1952820        public float Confidence { get; }
 21    }
 22}

Methods/Properties

.ctor(...)
get_Confidence()