< Summary

Class:Azure.AI.TextAnalytics.LinkedEntityMatch
Assembly:Azure.AI.TextAnalytics
File(s):C:\Git\azure-sdk-for-net\sdk\textanalytics\Azure.AI.TextAnalytics\src\LinkedEntityMatch.cs
Covered lines:5
Uncovered lines:0
Coverable lines:5
Total lines:30
Line coverage:100% (5 of 5)
Covered branches:0
Total branches:0

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\textanalytics\Azure.AI.TextAnalytics\src\LinkedEntityMatch.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4namespace 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        {
 12415            Text = text;
 12416            ConfidenceScore = score;
 12417        }
 18
 19        /// <summary>
 20        /// Gets the entity text as it appears in the document.
 21        /// </summary>
 1222        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>
 1228        public double ConfidenceScore { get; }
 29    }
 30}