< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%100%
get_Positive()-100%100%
get_Neutral()-100%100%
get_Negative()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\textanalytics\Azure.AI.TextAnalytics\src\SentimentConfidenceScores.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    /// The sentiment confidence scores, by sentiment.
 8    /// </summary>
 9    public class SentimentConfidenceScores
 10    {
 12811        internal SentimentConfidenceScores(double positive, double neutral, double negative)
 12        {
 12813            Positive = positive;
 12814            Neutral = neutral;
 12815            Negative = negative;
 12816        }
 17
 18        /// <summary>
 19        /// Gets a score between 0 and 1, indicating the confidence that the
 20        /// sentiment of the analyzed text is positive.
 21        /// </summary>
 22422        public double Positive { get; }
 23
 24        /// <summary>
 25        /// Gets a score between 0 and 1, indicating the confidence that the
 26        /// sentiment of the analyzed text is neutral.
 27        /// </summary>
 22428        public double Neutral { get; }
 29
 30        /// <summary>
 31        /// Gets a score between 0 and 1, indicating the confidence that the
 32        /// sentiment of the analyzed text is negative.
 33        /// </summary>
 22434        public double Negative { get; }
 35    }
 36}